Class GroupCombineOperator<IN,​OUT>

  • Type Parameters:
    IN - The type of the data set consumed by the operator.
    OUT - The type of the data set created by the operator.
    All Implemented Interfaces:
    UdfOperator<GroupCombineOperator<IN,​OUT>>

    @Deprecated
    @Public
    public class GroupCombineOperator<IN,​OUT>
    extends SingleInputUdfOperator<IN,​OUT,​GroupCombineOperator<IN,​OUT>>
    Deprecated.
    All Flink DataSet APIs are deprecated since Flink 1.18 and will be removed in a future Flink major version. You can still build your application in DataSet, but you should move to either the DataStream and/or Table API.
    This operator behaves like the GroupReduceOperator with Combine but only runs the Combine part which reduces all data locally in their partitions. The combine part can return an arbitrary data type. This is useful to pre-combine values into an intermediate representation before applying a proper reduce operation.
    See Also:
    FLIP-131: Consolidate the user-facing Dataflow SDKs/APIs (and deprecate the DataSet API
    • Constructor Detail

      • GroupCombineOperator

        public GroupCombineOperator​(DataSet<IN> input,
                                    org.apache.flink.api.common.typeinfo.TypeInformation<OUT> resultType,
                                    org.apache.flink.api.common.functions.GroupCombineFunction<IN,​OUT> function,
                                    String defaultName)
        Deprecated.
        Constructor for a non-grouped reduce (all reduce).
        Parameters:
        input - The input data set to the groupReduce function.
        resultType - The type information for the resulting type.
        function - The user-defined GroupReduce function.
        defaultName - The operator's name.
      • GroupCombineOperator

        public GroupCombineOperator​(Grouping<IN> input,
                                    org.apache.flink.api.common.typeinfo.TypeInformation<OUT> resultType,
                                    org.apache.flink.api.common.functions.GroupCombineFunction<IN,​OUT> function,
                                    String defaultName)
        Deprecated.
        Constructor for a grouped reduce.
        Parameters:
        input - The grouped input to be processed group-wise by the groupReduce function.
        function - The user-defined GroupReduce function.