@Internal @Deprecated public class FoldApplyWindowFunction<K,W extends Window,T,ACC,R> extends org.apache.flink.api.java.operators.translation.WrappingFunction<WindowFunction<ACC,R,K,W>> implements WindowFunction<T,R,K,W>, OutputTypeConfigurable<R>
WindowFunction that is used for implementing a fold on a window configuration
that only allows WindowFunction and cannot directly execute a FoldFunction.| 构造器和说明 |
|---|
FoldApplyWindowFunction(ACC initialValue,
org.apache.flink.api.common.functions.FoldFunction<T,ACC> foldFunction,
WindowFunction<ACC,R,K,W> windowFunction,
org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accTypeInformation)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
apply(K key,
W window,
Iterable<T> values,
org.apache.flink.util.Collector<R> out)
已过时。
Evaluates the window and outputs none or several elements.
|
void |
open(org.apache.flink.configuration.Configuration configuration)
已过时。
|
void |
setOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<R> outTypeInfo,
org.apache.flink.api.common.ExecutionConfig executionConfig)
已过时。
Is called by the
org.apache.flink.streaming.api.graph.StreamGraph#addOperator(Integer, String, StreamOperator, TypeInformation, TypeInformation, String)
method when the StreamGraph is generated. |
close, getWrappedFunction, setRuntimeContextpublic void open(org.apache.flink.configuration.Configuration configuration)
throws Exception
public void apply(K key, W window, Iterable<T> values, org.apache.flink.util.Collector<R> out) throws Exception
WindowFunctionapply 在接口中 WindowFunction<T,R,K,W extends Window>key - The key for which this window is evaluated.window - The window that is being evaluated.values - 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.public void setOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<R> outTypeInfo, org.apache.flink.api.common.ExecutionConfig executionConfig)
OutputTypeConfigurableorg.apache.flink.streaming.api.graph.StreamGraph#addOperator(Integer, String, StreamOperator, TypeInformation, TypeInformation, String)
method when the StreamGraph is generated. The
method is called with the output TypeInformation which is also used for the
StreamTask output serializer.setOutputType 在接口中 OutputTypeConfigurable<R>outTypeInfo - Output type information of the StreamTaskexecutionConfig - Execution configurationCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.