@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.| Constructor and Description |
|---|
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)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(W window,
Iterable<T> values,
org.apache.flink.util.Collector<R> out)
Deprecated.
Evaluates the window and outputs none or several elements.
|
void |
open(org.apache.flink.configuration.Configuration configuration)
Deprecated.
|
void |
setOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<R> outTypeInfo,
org.apache.flink.api.common.ExecutionConfig executionConfig)
Deprecated.
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(W window, Iterable<T> values, org.apache.flink.util.Collector<R> out) throws Exception
AllWindowFunctionapply in interface AllWindowFunction<T,R,W extends Window>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 in interface OutputTypeConfigurable<R>outTypeInfo - Output type information of the StreamTaskexecutionConfig - Execution configurationCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.