QueryEngine/RelAlgDagBuilder.cpp
// Prints the relational algebra as a tree; useful for debugging.
Prints the relational algebra as a tree; useful for debugging.
Prints the relational algebra as a tree ; useful for debugging .
std::string tree_string(const RelAlgNode* ra, const size_t indent) {
  std::string result = std::string(indent, ' ') + ra->toString() + "\n";
  for (size_t i = 0; i < ra->inputCount(); ++i) {
    result += tree_string(ra->getInput(i), indent + 2);
  }
  return result;
}
std :: string tree_string ( const RelAlgNode * ra , const size_t indent ) { std :: string result = std :: string ( indent , ' ' ) + ra -> toString ( ) + " \n " ; for ( size_t i = 0 ; i < ra -> inputCount ( ) ; ++ i ) { result += tree_string ( ra -> getInput ( i ) , indent + 2 ) ; } return result ; }
Prints the relational algebra as a tree; useful for debugging.
Prints the relational algebra as a tree ; useful for debugging .