IN - The type of the input value.OUT - The type of the output value.KEY - The type of the key.W - The type of Window that this window function can be applied on.@PublicEvolving
public abstract class WindowReaderFunction<IN,OUT,KEY,W extends org.apache.flink.streaming.api.windowing.windows.Window>
extends org.apache.flink.api.common.functions.AbstractRichFunction
| Modifier and Type | Class and Description |
|---|---|
static interface |
WindowReaderFunction.Context<W extends org.apache.flink.streaming.api.windowing.windows.Window>
The context holding window metadata.
|
| Constructor and Description |
|---|
WindowReaderFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
readWindow(KEY key,
WindowReaderFunction.Context<W> context,
Iterable<IN> elements,
org.apache.flink.util.Collector<OUT> out)
Evaluates the window and outputs none or several elements.
|
public abstract void readWindow(KEY key, WindowReaderFunction.Context<W> context, Iterable<IN> elements, org.apache.flink.util.Collector<OUT> out) throws Exception
key - The key for which this window is evaluated.context - The context in which the window is being evaluated.elements - The elements in the window being evaluated.out - A collector for emitting elements.Exception - The function may throw exceptions to fail the program and trigger recovery.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.