use of org.teiid.client.plan.PlanNode in project teiid by teiid.
the class LoopInstruction method getDescriptionProperties.
public PlanNode getDescriptionProperties() {
// $NON-NLS-1$
PlanNode props = new PlanNode("LOOP");
props.addProperty(PROP_SQL, this.plan.getDescriptionProperties());
props.addProperty(PROP_RESULT_SET, this.rsName);
props.addProperty(PROP_PROGRAM, this.loopProgram.getDescriptionProperties());
return props;
}
use of org.teiid.client.plan.PlanNode in project teiid by teiid.
the class Program method getDescriptionProperties.
public PlanNode getDescriptionProperties() {
// $NON-NLS-1$
PlanNode props = new PlanNode("Program");
if (label != null) {
// $NON-NLS-1$
props.addProperty("Label", label);
}
if (this.programInstructions != null) {
for (int i = 0; i < programInstructions.size(); i++) {
ProgramInstruction inst = programInstructions.get(i);
PlanNode childProps = inst.getDescriptionProperties();
// $NON-NLS-1$
props.addProperty("Instruction " + i, childProps);
}
}
if (this.exceptionGroup != null) {
// $NON-NLS-1$
props.addProperty("EXCEPTION GROUP", this.exceptionGroup);
if (this.exceptionProgram != null) {
// $NON-NLS-1$
props.addProperty("EXCEPTION HANDLER", this.exceptionProgram.getDescriptionProperties());
}
}
return props;
}
use of org.teiid.client.plan.PlanNode in project teiid by teiid.
the class SelectNode method getDescriptionProperties.
public PlanNode getDescriptionProperties() {
PlanNode props = super.getDescriptionProperties();
AnalysisRecord.addLanaguageObjects(props, PROP_CRITERIA, Arrays.asList(this.criteria));
return props;
}
use of org.teiid.client.plan.PlanNode in project teiid by teiid.
the class SortNode method getDescriptionProperties.
public PlanNode getDescriptionProperties() {
PlanNode props = super.getDescriptionProperties();
if (this.items != null) {
props.addProperty(PROP_SORT_COLS, this.items.toString());
}
props.addProperty(PROP_SORT_MODE, this.mode.toString());
return props;
}
use of org.teiid.client.plan.PlanNode in project teiid by teiid.
the class WhileInstruction method getDescriptionProperties.
public PlanNode getDescriptionProperties() {
// $NON-NLS-1$
PlanNode props = new PlanNode("WHILE");
props.addProperty(PROP_CRITERIA, this.condition.toString());
props.addProperty(PROP_PROGRAM, this.whileProgram.getDescriptionProperties());
return props;
}
Aggregations