@Internal @Deprecated public class FoldApplyAllWindowFunction<W extends Window,T,ACC,R> extends org.apache.flink.api.java.operators.translation.WrappingFunction<AllWindowFunction<ACC,R,W>> implements AllWindowFunction<T,R,W>, OutputTypeConfigurable<R>
AllWindowFunction
that is used for implementing a fold on a window configuration
that only allows AllWindowFunction
and cannot directly execute a FoldFunction
.构造器和说明 |
---|
FoldApplyAllWindowFunction(ACC initialValue,
org.apache.flink.api.common.functions.FoldFunction<T,ACC> foldFunction,
AllWindowFunction<ACC,R,W> windowFunction,
org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accTypeInformation)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
void |
apply(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, setRuntimeContext
public void open(org.apache.flink.configuration.Configuration configuration) throws Exception
public void apply(W window, Iterable<T> values, org.apache.flink.util.Collector<R> out) throws Exception
AllWindowFunction
public void setOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<R> outTypeInfo, org.apache.flink.api.common.ExecutionConfig executionConfig)
OutputTypeConfigurable
org.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 StreamTask
executionConfig
- Execution configurationCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.