use of org.apache.flink.optimizer.operators.AllGroupCombineProperties in project flink by apache.
the class GroupCombineNode method initPossibleProperties.
private List<OperatorDescriptorSingle> initPossibleProperties() {
// check if we can work with a grouping (simple reducer), or if we need ordering because of a group order
Ordering groupOrder = getOperator().getGroupOrder();
if (groupOrder != null && groupOrder.getNumberOfFields() == 0) {
groupOrder = null;
}
OperatorDescriptorSingle props = (this.keys == null ? new AllGroupCombineProperties() : new GroupCombineProperties(this.keys, groupOrder));
return Collections.singletonList(props);
}
Aggregations