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; }
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; }
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; }