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

  • 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>, org.apache.flink.api.common.functions.RichFunction

    public class RichCombineToGroupCombineWrapper<IN,​OUT,​F extends org.apache.flink.api.common.functions.RichGroupReduceFunction<IN,​OUT> & org.apache.flink.api.common.functions.CombineFunction<IN,​IN>>
    extends org.apache.flink.api.common.functions.RichGroupCombineFunction<IN,​IN>
    implements 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

      • RichCombineToGroupCombineWrapper

        public RichCombineToGroupCombineWrapper​(F wrappedFunction)
    • Method Detail

      • open

        public void open​(org.apache.flink.configuration.Configuration config)
                  throws Exception
        Specified by:
        open in interface org.apache.flink.api.common.functions.RichFunction
        Overrides:
        open in class org.apache.flink.api.common.functions.AbstractRichFunction
        Throws:
        Exception
      • 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>
        Specified by:
        combine in class org.apache.flink.api.common.functions.RichGroupCombineFunction<IN,​IN>
        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