@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
构造器和说明 |
---|
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)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
void |
clear(ProcessWindowFunction.Context context)
已过时。
Deletes any state in the
Context when the Window is purged. |
void |
close()
已过时。
|
void |
open(org.apache.flink.configuration.Configuration configuration)
已过时。
|
void |
process(K key,
ProcessWindowFunction.Context context,
Iterable<T> values,
org.apache.flink.util.Collector<R> out)
已过时。
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)
已过时。
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)
已过时。
|
public void open(org.apache.flink.configuration.Configuration configuration) throws Exception
open
在接口中 org.apache.flink.api.common.functions.RichFunction
open
在类中 org.apache.flink.api.common.functions.AbstractRichFunction
Exception
public void close() throws Exception
close
在接口中 org.apache.flink.api.common.functions.RichFunction
close
在类中 org.apache.flink.api.common.functions.AbstractRichFunction
Exception
public void setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t)
setRuntimeContext
在接口中 org.apache.flink.api.common.functions.RichFunction
setRuntimeContext
在类中 org.apache.flink.api.common.functions.AbstractRichFunction
public void process(K key, ProcessWindowFunction.Context context, Iterable<T> values, org.apache.flink.util.Collector<R> out) throws Exception
ProcessWindowFunction
process
在类中 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
ProcessWindowFunction
Context
when the Window is purged.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.