IN - The input type stored in state.R - The aggregated type.OUT - The output type of the reader function.KEY - The key type.W - The window type.@Internal public abstract class EvictingWindowReaderFunction<IN,R,OUT,KEY,W extends org.apache.flink.streaming.api.windowing.windows.Window> extends WindowReaderFunction<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN>,OUT,KEY,W>
WindowReaderFunction.Context<W extends org.apache.flink.streaming.api.windowing.windows.Window>| Modifier | Constructor and Description |
|---|---|
protected |
EvictingWindowReaderFunction(WindowReaderFunction<R,OUT,KEY,W> wrappedFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
open(org.apache.flink.configuration.Configuration parameters) |
void |
readWindow(KEY key,
WindowReaderFunction.Context<W> context,
Iterable<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN>> elements,
org.apache.flink.util.Collector<OUT> out)
Evaluates the window and outputs none or several elements.
|
void |
setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t) |
abstract Iterable<R> |
transform(Iterable<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN>> elements) |
protected EvictingWindowReaderFunction(WindowReaderFunction<R,OUT,KEY,W> wrappedFunction)
public void open(org.apache.flink.configuration.Configuration parameters)
throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void close()
throws Exception
close in interface org.apache.flink.api.common.functions.RichFunctionclose in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t)
setRuntimeContext in interface org.apache.flink.api.common.functions.RichFunctionsetRuntimeContext in class org.apache.flink.api.common.functions.AbstractRichFunctionpublic void readWindow(KEY key, WindowReaderFunction.Context<W> context, Iterable<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN>> elements, org.apache.flink.util.Collector<OUT> out) throws Exception
WindowReaderFunctionreadWindow in class WindowReaderFunction<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN>,OUT,KEY,W extends org.apache.flink.streaming.api.windowing.windows.Window>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.