Class InternalIterableProcessAsyncWindowFunction<IN,OUT,KEY,W extends Window>
java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.api.common.functions.WrappingFunction<ProcessWindowFunction<IN,OUT,KEY,W>>
org.apache.flink.runtime.asyncprocessing.operators.windowing.functions.InternalIterableProcessAsyncWindowFunction<IN,OUT,KEY,W>
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction,InternalAsyncWindowFunction<org.apache.flink.api.common.state.v2.StateIterator<IN>,OUT, KEY, W>
public final class InternalIterableProcessAsyncWindowFunction<IN,OUT,KEY,W extends Window>
extends org.apache.flink.api.common.functions.WrappingFunction<ProcessWindowFunction<IN,OUT,KEY,W>>
implements InternalAsyncWindowFunction<org.apache.flink.api.common.state.v2.StateIterator<IN>,OUT,KEY,W>
Internal window function for wrapping a
ProcessWindowFunction that takes an
Iterable when the window state also is an Iterable. This is for async window operator.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.asyncprocessing.operators.windowing.functions.InternalAsyncWindowFunction
InternalAsyncWindowFunction.InternalWindowContext -
Field Summary
Fields inherited from class org.apache.flink.api.common.functions.WrappingFunction
wrappedFunction -
Constructor Summary
ConstructorsConstructorDescriptionInternalIterableProcessAsyncWindowFunction(ProcessWindowFunction<IN, OUT, KEY, W> wrappedFunction) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.common.state.v2.StateFuture<Void>clear(W window, InternalAsyncWindowFunction.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.RuntimeContextorg.apache.flink.api.common.state.v2.StateFuture<Void>process(KEY key, W window, InternalAsyncWindowFunction.InternalWindowContext context, org.apache.flink.api.common.state.v2.StateIterator<IN> input, org.apache.flink.util.Collector<OUT> out) Evaluates the window and outputs none or several elements.Methods inherited from class org.apache.flink.api.common.functions.WrappingFunction
close, getWrappedFunction, open, setRuntimeContext
-
Constructor Details
-
InternalIterableProcessAsyncWindowFunction
public InternalIterableProcessAsyncWindowFunction(ProcessWindowFunction<IN, OUT, KEY, W> wrappedFunction)
-
-
Method Details
-
process
public org.apache.flink.api.common.state.v2.StateFuture<Void> process(KEY key, W window, InternalAsyncWindowFunction.InternalWindowContext context, org.apache.flink.api.common.state.v2.StateIterator<IN> input, org.apache.flink.util.Collector<OUT> out) throws Exception Description copied from interface:InternalAsyncWindowFunctionEvaluates the window and outputs none or several elements.- Specified by:
processin interfaceInternalAsyncWindowFunction<IN,OUT, KEY, W extends Window> context- The context in which the window is being evaluated.input- The elements in the window being evaluated.out- A collector for emitting elements.- Returns:
- Throws:
Exception- The function may throw exceptions to fail the program and trigger recovery.
-
clear
public org.apache.flink.api.common.state.v2.StateFuture<Void> clear(W window, InternalAsyncWindowFunction.InternalWindowContext context) throws Exception Description copied from interface:InternalAsyncWindowFunctionDeletes 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
-