use of org.teiid.client.plan.PlanNode in project teiid by teiid.
the class TextTableNode method getDescriptionProperties.
@Override
public PlanNode getDescriptionProperties() {
PlanNode props = super.getDescriptionProperties();
AnalysisRecord.addLanaguageObjects(props, AnalysisRecord.PROP_TABLE_FUNCTION, Arrays.asList(this.table));
return props;
}
use of org.teiid.client.plan.PlanNode in project teiid by teiid.
the class WindowFunctionProjectNode method getDescriptionProperties.
@Override
public PlanNode getDescriptionProperties() {
PlanNode props = super.getDescriptionProperties();
AnalysisRecord.addLanaguageObjects(props, PROP_WINDOW_FUNCTIONS, this.windows.keySet());
return props;
}
use of org.teiid.client.plan.PlanNode in project teiid by teiid.
the class XMLTableNode method getDescriptionProperties.
@Override
public PlanNode getDescriptionProperties() {
PlanNode props = super.getDescriptionProperties();
AnalysisRecord.addLanaguageObjects(props, AnalysisRecord.PROP_TABLE_FUNCTION, Arrays.asList(this.table));
props.addProperty(AnalysisRecord.PROP_STREAMING, String.valueOf(this.table.getXQueryExpression().isStreaming()));
return props;
}
use of org.teiid.client.plan.PlanNode in project teiid by teiid.
the class BatchedUpdateNode method getDescriptionProperties.
@Override
public PlanNode getDescriptionProperties() {
PlanNode node = super.getDescriptionProperties();
AnalysisRecord.addLanaguageObjects(node, AnalysisRecord.PROP_SQL, this.updateCommands);
return node;
}
use of org.teiid.client.plan.PlanNode in project teiid by teiid.
the class GroupingNode method getDescriptionProperties.
public PlanNode getDescriptionProperties() {
// Default implementation - should be overridden
PlanNode props = super.getDescriptionProperties();
if (orderBy != null) {
int elements = orderBy.size();
List<String> groupCols = new ArrayList<String>(elements);
for (int i = 0; i < elements; i++) {
groupCols.add(this.orderBy.get(i).toString());
}
props.addProperty(PROP_GROUP_COLS, groupCols);
}
if (outputMapping != null) {
List<String> groupCols = new ArrayList<String>(outputMapping.asMap().size());
for (Map.Entry<ElementSymbol, Expression> entry : outputMapping.asMap().entrySet()) {
groupCols.add(entry.toString());
}
props.addProperty(PROP_GROUP_MAPPING, groupCols);
}
props.addProperty(PROP_SORT_MODE, String.valueOf(this.removeDuplicates));
if (rollup) {
props.addProperty(PROP_ROLLUP, Boolean.TRUE.toString());
}
return props;
}
Aggregations