@Internal public class ReduceApplyWindowFunction<K,W extends Window,T,R> extends org.apache.flink.api.java.operators.translation.WrappingFunction<WindowFunction<T,R,K,W>> implements WindowFunction<T,R,K,W>
WindowFunction that is used for implementing a fold on a window configuration
that only allows WindowFunction and cannot directly execute a ReduceFunction.| 构造器和说明 |
|---|
ReduceApplyWindowFunction(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction,
WindowFunction<T,R,K,W> windowFunction) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
apply(K k,
W window,
Iterable<T> input,
org.apache.flink.util.Collector<R> out)
Evaluates the window and outputs none or several elements.
|
close, getWrappedFunction, open, setRuntimeContextpublic void apply(K k, W window, Iterable<T> input, org.apache.flink.util.Collector<R> out) throws Exception
WindowFunctionapply 在接口中 WindowFunction<T,R,K,W extends Window>k - The key for which this window is evaluated.window - The window that is being evaluated.input - 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.