@Internal public class FoldApplyWindowFunction<K,W extends Window,T,ACC> extends org.apache.flink.api.java.operators.translation.WrappingFunction<WindowFunction<ACC,ACC,K,W>> implements WindowFunction<T,ACC,K,W>, OutputTypeConfigurable<ACC>
| Constructor and Description |
|---|
FoldApplyWindowFunction(ACC initialValue,
org.apache.flink.api.common.functions.FoldFunction<T,ACC> foldFunction,
WindowFunction<ACC,ACC,K,W> windowFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(K key,
W window,
Iterable<T> values,
org.apache.flink.util.Collector<ACC> 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<ACC> outTypeInfo,
org.apache.flink.api.common.ExecutionConfig executionConfig)
Is called by the
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<ACC> out) throws Exception
WindowFunctionapply in interface WindowFunction<T,ACC,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<ACC> outTypeInfo, org.apache.flink.api.common.ExecutionConfig executionConfig)
OutputTypeConfigurableStreamGraph.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<ACC>outTypeInfo - Output type information of the StreamTaskexecutionConfig - Execution configurationCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.