Class CombineToGroupCombineWrapper<IN,​OUT,​F extends org.apache.flink.api.common.functions.CombineFunction<IN,​IN> & org.apache.flink.api.common.functions.GroupReduceFunction<IN,​OUT>>

  • All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.GroupCombineFunction<IN,​IN>, org.apache.flink.api.common.functions.GroupReduceFunction<IN,​OUT>

    @Internal
    public class CombineToGroupCombineWrapper<IN,​OUT,​F extends org.apache.flink.api.common.functions.CombineFunction<IN,​IN> & org.apache.flink.api.common.functions.GroupReduceFunction<IN,​OUT>>
    extends Object
    implements org.apache.flink.api.common.functions.GroupCombineFunction<IN,​IN>, org.apache.flink.api.common.functions.GroupReduceFunction<IN,​OUT>
    A wrapper the wraps a function that implements both CombineFunction and GroupReduceFunction interfaces and makes it look like a function that implements GroupCombineFunction and GroupReduceFunction to the runtime.
    See Also:
    Serialized Form
    • Constructor Detail

      • CombineToGroupCombineWrapper

        public CombineToGroupCombineWrapper​(F wrappedFunction)
    • Method Detail

      • combine

        public void combine​(Iterable<IN> values,
                            org.apache.flink.util.Collector<IN> out)
                     throws Exception
        Specified by:
        combine in interface org.apache.flink.api.common.functions.GroupCombineFunction<IN,​OUT>
        Throws:
        Exception
      • reduce

        public void reduce​(Iterable<IN> values,
                           org.apache.flink.util.Collector<OUT> out)
                    throws Exception
        Specified by:
        reduce in interface org.apache.flink.api.common.functions.GroupReduceFunction<IN,​OUT>
        Throws:
        Exception