Class RichCombineToGroupCombineWrapper<IN,OUT,F extends org.apache.flink.api.common.functions.RichGroupReduceFunction<IN,OUT> & org.apache.flink.api.common.functions.CombineFunction<IN,IN>>
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.api.common.functions.RichGroupCombineFunction<IN,IN>
-
- org.apache.flink.api.java.operators.translation.RichCombineToGroupCombineWrapper<IN,OUT,F>
-
- 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 bothCombineFunctionandGroupReduceFunctioninterfaces and makes it look like a function that implementsGroupCombineFunctionandGroupReduceFunctionto the runtime.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RichCombineToGroupCombineWrapper(F wrappedFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcombine(Iterable<IN> values, org.apache.flink.util.Collector<IN> out)voidopen(org.apache.flink.api.common.functions.OpenContext openContext)voidreduce(Iterable<IN> values, org.apache.flink.util.Collector<OUT> out)
-
-
-
Constructor Detail
-
RichCombineToGroupCombineWrapper
public RichCombineToGroupCombineWrapper(F wrappedFunction)
-
-
Method Detail
-
open
public void open(org.apache.flink.api.common.functions.OpenContext openContext) throws Exception- Specified by:
openin interfaceorg.apache.flink.api.common.functions.RichFunction- Throws:
Exception
-
combine
public void combine(Iterable<IN> values, org.apache.flink.util.Collector<IN> out) throws Exception
-
-