Class InternalSingleValueProcessWindowFunction<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.streaming.runtime.operators.windowing.functions.InternalSingleValueProcessWindowFunction<IN,OUT,KEY,W>
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction,InternalWindowFunction<IN,OUT,KEY,W>
public final class InternalSingleValueProcessWindowFunction<IN,OUT,KEY,W extends Window> extends org.apache.flink.api.common.functions.WrappingFunction<ProcessWindowFunction<IN,OUT,KEY,W>> implements InternalWindowFunction<IN,OUT,KEY,W>
Internal window function for wrapping aProcessWindowFunctionthat takes anIterablewhen the window state is a single value.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.streaming.runtime.operators.windowing.functions.InternalWindowFunction
InternalWindowFunction.InternalWindowContext
-
-
Constructor Summary
Constructors Constructor Description InternalSingleValueProcessWindowFunction(ProcessWindowFunction<IN,OUT,KEY,W> wrappedFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear(W window, InternalWindowFunction.InternalWindowContext context)Deletes any state in theContextwhen the Window expires (the watermark passes itsmaxTimestamp+allowedLateness).org.apache.flink.api.common.functions.IterationRuntimeContextgetIterationRuntimeContext()org.apache.flink.api.common.functions.RuntimeContextgetRuntimeContext()voidprocess(KEY key, W window, InternalWindowFunction.InternalWindowContext context, IN input, org.apache.flink.util.Collector<OUT> out)Evaluates the window and outputs none or several elements.
-
-
-
Constructor Detail
-
InternalSingleValueProcessWindowFunction
public InternalSingleValueProcessWindowFunction(ProcessWindowFunction<IN,OUT,KEY,W> wrappedFunction)
-
-
Method Detail
-
process
public void process(KEY key, W window, InternalWindowFunction.InternalWindowContext context, IN input, org.apache.flink.util.Collector<OUT> out) throws Exception
Description copied from interface:InternalWindowFunctionEvaluates the window and outputs none or several elements.- Specified by:
processin interfaceInternalWindowFunction<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.- Throws:
Exception- The function may throw exceptions to fail the program and trigger recovery.
-
clear
public void clear(W window, InternalWindowFunction.InternalWindowContext context) throws Exception
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
-
-