void AbstractReceivePlanNode::schemaDebugInfo(std::ostringstream& buffer, const std::vector<SchemaColumn*>& schema, const std::string& schema_name, const std::string& spacer) { buffer << spacer << schema_name << " Table Columns[" << schema.size() << "]:\n"; for (int ctr = 0, cnt = (int)schema.size(); ctr < cnt; ctr++) { SchemaColumn* col = schema[ctr]; buffer << spacer << " [" << ctr << "] "; buffer << "name=" << col->getColumnName() << " : "; buffer << "size=" << col->getExpression()->getValueSize() << " : "; buffer << "type=" << col->getExpression()->getValueType() << "\n"; } }
std::string ReceivePlanNode::debugInfo(const std::string& spacer) const { std::ostringstream buffer; buffer << spacer << "Incoming Table Columns[" << getOutputSchema().size() << "]:\n"; for (int ctr = 0, cnt = (int)getOutputSchema().size(); ctr < cnt; ctr++) { SchemaColumn* col = getOutputSchema()[ctr]; buffer << spacer << " [" << ctr << "] "; buffer << "name=" << col->getColumnName() << " : "; buffer << "size=" << col->getExpression()->getValueSize() << " : "; buffer << "type=" << col->getExpression()->getValueType() << "\n"; } return buffer.str(); }