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>| 限定符 | 构造器和说明 |
|---|---|
protected |
EvictingWindowReaderFunction(WindowReaderFunction<R,OUT,KEY,W> wrappedFunction) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 org.apache.flink.api.common.functions.RichFunctionopen 在类中 org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void close()
throws Exception
close 在接口中 org.apache.flink.api.common.functions.RichFunctionclose 在类中 org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t)
setRuntimeContext 在接口中 org.apache.flink.api.common.functions.RichFunctionsetRuntimeContext 在类中 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 在类中 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–2023 The Apache Software Foundation. All rights reserved.