Search in sources :

Example 1 with AllGroupCombineProperties

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);
}
Also used : OperatorDescriptorSingle(org.apache.flink.optimizer.operators.OperatorDescriptorSingle) GroupCombineProperties(org.apache.flink.optimizer.operators.GroupCombineProperties) AllGroupCombineProperties(org.apache.flink.optimizer.operators.AllGroupCombineProperties) Ordering(org.apache.flink.api.common.operators.Ordering) AllGroupCombineProperties(org.apache.flink.optimizer.operators.AllGroupCombineProperties)

Aggregations

Ordering (org.apache.flink.api.common.operators.Ordering)1 AllGroupCombineProperties (org.apache.flink.optimizer.operators.AllGroupCombineProperties)1 GroupCombineProperties (org.apache.flink.optimizer.operators.GroupCombineProperties)1 OperatorDescriptorSingle (org.apache.flink.optimizer.operators.OperatorDescriptorSingle)1