Class CoGroupOperator<I1,​I2,​OUT>

    • Constructor Detail

      • CoGroupOperator

        public CoGroupOperator​(DataSet<I1> input1,
                               DataSet<I2> input2,
                               org.apache.flink.api.common.operators.Keys<I1> keys1,
                               org.apache.flink.api.common.operators.Keys<I2> keys2,
                               org.apache.flink.api.common.functions.CoGroupFunction<I1,​I2,​OUT> function,
                               org.apache.flink.api.common.typeinfo.TypeInformation<OUT> returnType,
                               org.apache.flink.api.common.functions.Partitioner<?> customPartitioner,
                               String defaultName)
        Deprecated.
      • CoGroupOperator

        public CoGroupOperator​(DataSet<I1> input1,
                               DataSet<I2> input2,
                               org.apache.flink.api.common.operators.Keys<I1> keys1,
                               org.apache.flink.api.common.operators.Keys<I2> keys2,
                               org.apache.flink.api.common.functions.CoGroupFunction<I1,​I2,​OUT> function,
                               org.apache.flink.api.common.typeinfo.TypeInformation<OUT> returnType,
                               List<org.apache.commons.lang3.tuple.Pair<Integer,​org.apache.flink.api.common.operators.Order>> groupSortKeyOrderFirst,
                               List<org.apache.commons.lang3.tuple.Pair<Integer,​org.apache.flink.api.common.operators.Order>> groupSortKeyOrderSecond,
                               org.apache.flink.api.common.functions.Partitioner<?> customPartitioner,
                               String defaultName)
        Deprecated.
    • Method Detail

      • getKeys1

        @Internal
        protected org.apache.flink.api.common.operators.Keys<I1> getKeys1()
        Deprecated.
      • getKeys2

        @Internal
        protected org.apache.flink.api.common.operators.Keys<I2> getKeys2()
        Deprecated.
      • withPartitioner

        public CoGroupOperator<I1,​I2,​OUT> withPartitioner​(org.apache.flink.api.common.functions.Partitioner<?> partitioner)
        Deprecated.
        Sets a custom partitioner for the CoGroup operation. The partitioner will be called on the join keys to determine the partition a key should be assigned to. The partitioner is evaluated on both inputs in the same way.

        NOTE: A custom partitioner can only be used with single-field CoGroup keys, not with composite CoGroup keys.

        Parameters:
        partitioner - The custom partitioner to be used.
        Returns:
        This CoGroup operator, to allow for function chaining.
      • getPartitioner

        public org.apache.flink.api.common.functions.Partitioner<?> getPartitioner()
        Deprecated.
        Gets the custom partitioner used by this join, or null, if none is set.
        Returns:
        The custom partitioner used by this join;
      • translateToDataFlow

        @Internal
        protected org.apache.flink.api.common.operators.base.CoGroupOperatorBase<?,​?,​OUT,​?> translateToDataFlow​(org.apache.flink.api.common.operators.Operator<I1> input1,
                                                                                                                                  org.apache.flink.api.common.operators.Operator<I2> input2)
        Deprecated.
        Description copied from class: TwoInputOperator
        Translates this java API operator into a common API operator with two inputs.
        Specified by:
        translateToDataFlow in class TwoInputOperator<I1,​I2,​OUT,​CoGroupOperator<I1,​I2,​OUT>>
        Parameters:
        input1 - The first input of the operation, as a common API operator.
        input2 - The second input of the operation, as a common API operator.
        Returns:
        The created common API operator.