Class RichAggregateFunction<IN,ACC,OUT>
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.api.common.functions.RichAggregateFunction<IN,ACC,OUT>
-
- Type Parameters:
IN- The type of the values that are aggregated (input values)ACC- The type of the accumulator (intermediate aggregate state).OUT- The type of the aggregated result
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.AggregateFunction<IN,ACC,OUT>,org.apache.flink.api.common.functions.Function,RichFunction
@PublicEvolving public abstract class RichAggregateFunction<IN,ACC,OUT> extends AbstractRichFunction implements org.apache.flink.api.common.functions.AggregateFunction<IN,ACC,OUT>
Rich variant of theAggregateFunction. As aRichFunction, it gives access to theRuntimeContextand provides setup and teardown methods:RichFunction.open(OpenContext)andRichFunction.close().- See Also:
AggregateFunction, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RichAggregateFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract ACCadd(IN value, ACC accumulator)abstract ACCcreateAccumulator()abstract OUTgetResult(ACC accumulator)abstract ACCmerge(ACC a, ACC b)-
Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.api.common.functions.RichFunction
open
-
-