Search in sources :

Example 6 with PlanNode

use of org.teiid.client.plan.PlanNode in project teiid by teiid.

the class LimitNode method getDescriptionProperties.

public PlanNode getDescriptionProperties() {
    PlanNode props = super.getDescriptionProperties();
    props.addProperty(PROP_ROW_OFFSET, String.valueOf(offsetExpr));
    props.addProperty(PROP_ROW_LIMIT, String.valueOf(limitExpr));
    return props;
}
Also used : PlanNode(org.teiid.client.plan.PlanNode)

Example 7 with PlanNode

use of org.teiid.client.plan.PlanNode in project teiid by teiid.

the class PlanExecutionNode method getDescriptionProperties.

public PlanNode getDescriptionProperties() {
    PlanNode props = super.getDescriptionProperties();
    props.addProperty(PROP_EXECUTION_PLAN, this.plan.getDescriptionProperties());
    return props;
}
Also used : PlanNode(org.teiid.client.plan.PlanNode)

Example 8 with PlanNode

use of org.teiid.client.plan.PlanNode in project teiid by teiid.

the class ProjectNode method getDescriptionProperties.

public PlanNode getDescriptionProperties() {
    PlanNode props = super.getDescriptionProperties();
    AnalysisRecord.addLanaguageObjects(props, PROP_SELECT_COLS, this.selectSymbols);
    return props;
}
Also used : PlanNode(org.teiid.client.plan.PlanNode)

Example 9 with PlanNode

use of org.teiid.client.plan.PlanNode in project teiid by teiid.

the class RelationalNode method getDescriptionProperties.

public PlanNode getDescriptionProperties() {
    // Default implementation - should be overridden
    PlanNode result = new PlanNode(getClassName());
    result.addProperty(PROP_ID, String.valueOf(getID()));
    result.addProperty(PROP_OUTPUT_COLS, AnalysisRecord.getOutputColumnProperties(this.data.elements));
    if (this.getProcessingState().context != null && this.getProcessingState().context.getCollectNodeStatistics()) {
        result.addProperty(PROP_NODE_STATS_LIST, this.getProcessingState().nodeStatistics.getStatisticsList());
    }
    List<String> costEstimates = this.getCostEstimates();
    if (costEstimates != null) {
        result.addProperty(PROP_NODE_COST_ESTIMATES, costEstimates);
    }
    for (int i = 0; i < children.length; i++) {
        if (children[i] != null) {
            // $NON-NLS-1$
            result.addProperty("Child " + i, this.children[i].getDescriptionProperties());
        }
    }
    return result;
}
Also used : PlanNode(org.teiid.client.plan.PlanNode)

Example 10 with PlanNode

use of org.teiid.client.plan.PlanNode in project teiid by teiid.

the class CreateCursorResultSetInstruction method getDescriptionProperties.

public PlanNode getDescriptionProperties() {
    // $NON-NLS-1$
    PlanNode props = new PlanNode("CREATE CURSOR");
    props.addProperty(PROP_RESULT_SET, this.rsName);
    props.addProperty(PROP_SQL, this.plan.getDescriptionProperties());
    return props;
}
Also used : PlanNode(org.teiid.client.plan.PlanNode)

Aggregations

PlanNode (org.teiid.client.plan.PlanNode)35 ArrayList (java.util.ArrayList)3 Test (org.junit.Test)3 SymbolMap (org.teiid.query.sql.util.SymbolMap)3 ResultSet (java.sql.ResultSet)2 Statement (java.sql.Statement)2 Property (org.teiid.client.plan.PlanNode.Property)2 ElementSymbol (org.teiid.query.sql.symbol.ElementSymbol)2 BigInteger (java.math.BigInteger)1 SQLXML (java.sql.SQLXML)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 List (java.util.List)1 Map (java.util.Map)1 RequestMessage (org.teiid.client.RequestMessage)1 ResultsMessage (org.teiid.client.ResultsMessage)1 ParameterInfo (org.teiid.client.metadata.ParameterInfo)1 Annotation (org.teiid.client.plan.Annotation)1 SQLXMLImpl (org.teiid.core.types.SQLXMLImpl)1 AtomicRequestMessage (org.teiid.dqp.message.AtomicRequestMessage)1