Search in sources :

Example 1 with CoGroupRawDescriptor

use of org.apache.flink.optimizer.operators.CoGroupRawDescriptor in project flink by apache.

the class CoGroupRawNode method initializeDataProperties.

private List<OperatorDescriptorDual> initializeDataProperties() {
    Ordering groupOrder1 = null;
    Ordering groupOrder2 = null;
    CoGroupRawOperatorBase<?, ?, ?, ?> cgc = getOperator();
    groupOrder1 = cgc.getGroupOrderForInputOne();
    groupOrder2 = cgc.getGroupOrderForInputTwo();
    if (groupOrder1 != null && groupOrder1.getNumberOfFields() == 0) {
        groupOrder1 = null;
    }
    if (groupOrder2 != null && groupOrder2.getNumberOfFields() == 0) {
        groupOrder2 = null;
    }
    return Collections.<OperatorDescriptorDual>singletonList(new CoGroupRawDescriptor(this.keys1, this.keys2, groupOrder1, groupOrder2));
}
Also used : CoGroupRawDescriptor(org.apache.flink.optimizer.operators.CoGroupRawDescriptor) Ordering(org.apache.flink.api.common.operators.Ordering) OperatorDescriptorDual(org.apache.flink.optimizer.operators.OperatorDescriptorDual)

Aggregations

Ordering (org.apache.flink.api.common.operators.Ordering)1 CoGroupRawDescriptor (org.apache.flink.optimizer.operators.CoGroupRawDescriptor)1 OperatorDescriptorDual (org.apache.flink.optimizer.operators.OperatorDescriptorDual)1