@Internal @Deprecated public class FoldApplyProcessWindowFunction<K,W extends Window,T,ACC,R> extends ProcessWindowFunction<T,R,K,W> implements OutputTypeConfigurable<R>
ProcessWindowFunction that is used for implementing a fold on a window
configuration that only allows ProcessWindowFunction and cannot directly execute a
FoldFunction.ProcessWindowFunction.Context| Constructor and Description |
|---|
FoldApplyProcessWindowFunction(ACC initialValue,
org.apache.flink.api.common.functions.FoldFunction<T,ACC> foldFunction,
ProcessWindowFunction<ACC,R,K,W> windowFunction,
org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accTypeInformation)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear(ProcessWindowFunction.Context context)
Deprecated.
Deletes any state in the
Context when the Window is purged. |
void |
close()
Deprecated.
|
void |
open(org.apache.flink.configuration.Configuration configuration)
Deprecated.
|
void |
process(K key,
ProcessWindowFunction.Context context,
Iterable<T> values,
org.apache.flink.util.Collector<R> out)
Deprecated.
Evaluates the window and outputs none or several elements.
|
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. |
void |
setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t)
Deprecated.
|
public void open(org.apache.flink.configuration.Configuration configuration)
throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void close()
throws Exception
close in interface org.apache.flink.api.common.functions.RichFunctionclose in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t)
setRuntimeContext in interface org.apache.flink.api.common.functions.RichFunctionsetRuntimeContext in class org.apache.flink.api.common.functions.AbstractRichFunctionpublic void process(K key, ProcessWindowFunction.Context context, Iterable<T> values, org.apache.flink.util.Collector<R> out) throws Exception
ProcessWindowFunctionprocess in class ProcessWindowFunction<T,R,K,W extends Window>key - The key for which this window is evaluated.context - The context in which the window 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 clear(ProcessWindowFunction.Context context) throws Exception
ProcessWindowFunctionContext when the Window is purged.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.