Class InternalAggregateProcessAllWindowFunction<T,ACC,V,R,W extends Window>
java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.api.common.functions.WrappingFunction<ProcessAllWindowFunction<V,R,W>>
org.apache.flink.streaming.runtime.operators.windowing.functions.InternalAggregateProcessAllWindowFunction<T,ACC,V,R,W>
- Type Parameters:
W- The window typeT- The type of the input to the AggregateFunctionACC- The type of the AggregateFunction's accumulatorV- The type of the AggregateFunction's result, and the input to the WindowFunctionR- The result type of the WindowFunction
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction,InternalWindowFunction<Iterable<T>,R, Byte, W>
public final class InternalAggregateProcessAllWindowFunction<T,ACC,V,R,W extends Window>
extends org.apache.flink.api.common.functions.WrappingFunction<ProcessAllWindowFunction<V,R,W>>
implements InternalWindowFunction<Iterable<T>,R,Byte,W>
Internal window function for wrapping a
ProcessAllWindowFunction that takes an
Iterable and an AggregateFunction.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.streaming.runtime.operators.windowing.functions.InternalWindowFunction
InternalWindowFunction.InternalWindowContext -
Field Summary
Fields inherited from class org.apache.flink.api.common.functions.WrappingFunction
wrappedFunction -
Constructor Summary
ConstructorsConstructorDescriptionInternalAggregateProcessAllWindowFunction(org.apache.flink.api.common.functions.AggregateFunction<T, ACC, V> aggFunction, ProcessAllWindowFunction<V, R, W> windowFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear(W window, InternalWindowFunction.InternalWindowContext context) Deletes any state in theContextwhen the Window expires (the watermark passes itsmaxTimestamp+allowedLateness).org.apache.flink.api.common.functions.IterationRuntimeContextorg.apache.flink.api.common.functions.RuntimeContextvoidopen(org.apache.flink.api.common.functions.OpenContext openContext) voidprocess(Byte key, W window, InternalWindowFunction.InternalWindowContext context, Iterable<T> input, org.apache.flink.util.Collector<R> out) Evaluates the window and outputs none or several elements.Methods inherited from class org.apache.flink.api.common.functions.WrappingFunction
close, getWrappedFunction, setRuntimeContext
-
Constructor Details
-
InternalAggregateProcessAllWindowFunction
-
-
Method Details
-
open
-
process
public void process(Byte key, W window, InternalWindowFunction.InternalWindowContext context, Iterable<T> input, org.apache.flink.util.Collector<R> out) throws Exception Description copied from interface:InternalWindowFunctionEvaluates the window and outputs none or several elements.- Specified by:
processin interfaceInternalWindowFunction<T,ACC, V, R> context- The context in which the window is being evaluated.input- The elements in the window being evaluated.out- A collector for emitting elements.- Throws:
Exception- The function may throw exceptions to fail the program and trigger recovery.
-
clear
Description copied from interface:InternalWindowFunctionDeletes any state in theContextwhen the Window expires (the watermark passes itsmaxTimestamp+allowedLateness). -
getRuntimeContext
public org.apache.flink.api.common.functions.RuntimeContext getRuntimeContext()- Specified by:
getRuntimeContextin interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
getRuntimeContextin classorg.apache.flink.api.common.functions.AbstractRichFunction
-
getIterationRuntimeContext
public org.apache.flink.api.common.functions.IterationRuntimeContext getIterationRuntimeContext()- Specified by:
getIterationRuntimeContextin interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
getIterationRuntimeContextin classorg.apache.flink.api.common.functions.AbstractRichFunction
-