IN - The data type of the elements to be combined.OUT - The resulting data type of the elements to be combined.@Public public abstract class RichGroupCombineFunction<IN,OUT> extends AbstractRichFunction implements GroupCombineFunction<IN,OUT>
GroupCombineFunction. As a RichFunction, it gives access to the
RuntimeContext and provides setup and teardown methods:
RichFunction.open(org.apache.flink.configuration.Configuration) and
RichFunction.close().| Constructor and Description |
|---|
RichGroupCombineFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
combine(Iterable<IN> values,
Collector<OUT> out)
The combine method, called (potentially multiple timed) with subgroups of elements.
|
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextpublic abstract void combine(Iterable<IN> values, Collector<OUT> out) throws Exception
GroupCombineFunctioncombine in interface GroupCombineFunction<IN,OUT>values - The elements to be combined.out - The collector to use to return values from the function.Exception - The function may throw Exceptions, which will cause the program to cancel,
and may trigger the recovery logic.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.