Ejemplo n.º 1
0
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();
}
Ejemplo n.º 2
0
TupleSchema* AbstractPlanNode::generateTupleSchema() const
{
    // Get the effective output schema.
    // In general, this may require a search.
    const vector<SchemaColumn*>& outputSchema = getOutputSchema();
    return generateTupleSchema(outputSchema);
}
Ejemplo n.º 3
0
std::string ReceivePlanNode::debugInfo(const std::string& spacer) const
{
    std::ostringstream buffer;
    AbstractReceivePlanNode::schemaDebugInfo(buffer, getOutputSchema(), "Incoming", spacer);
    return buffer.str();
}