@Internal public class FoldApplyAllWindowFunction<W extends Window,T,ACC> extends org.apache.flink.api.java.operators.translation.WrappingFunction<AllWindowFunction<ACC,ACC,W>> implements AllWindowFunction<T,ACC,W>, OutputTypeConfigurable<ACC>
| Constructor and Description |
|---|
FoldApplyAllWindowFunction(ACC initialValue,
org.apache.flink.api.common.functions.FoldFunction<T,ACC> foldFunction,
AllWindowFunction<ACC,ACC,W> windowFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(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(W window, Iterable<T> values, org.apache.flink.util.Collector<ACC> out) throws Exception
AllWindowFunctionapply in interface AllWindowFunction<T,ACC,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<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.