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