public final class InternalSingleValueAllWindowFunction<IN,OUT,W extends Window> extends InternalWindowFunction<IN,OUT,Byte,W> implements org.apache.flink.api.common.functions.RichFunction
AllWindowFunction that takes an Iterable
when the window state is a single value.| Modifier and Type | Field and Description |
|---|---|
protected AllWindowFunction<IN,OUT,W> |
wrappedFunction |
| Constructor and Description |
|---|
InternalSingleValueAllWindowFunction(AllWindowFunction<IN,OUT,W> wrappedFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Byte key,
W window,
IN input,
org.apache.flink.util.Collector<OUT> out)
Evaluates the window and outputs none or several elements.
|
void |
close() |
org.apache.flink.api.common.functions.IterationRuntimeContext |
getIterationRuntimeContext() |
org.apache.flink.api.common.functions.RuntimeContext |
getRuntimeContext() |
void |
open(org.apache.flink.configuration.Configuration parameters) |
void |
setOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<OUT> 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. |
void |
setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t) |
protected AllWindowFunction<IN,OUT,W extends Window> wrappedFunction
public InternalSingleValueAllWindowFunction(AllWindowFunction<IN,OUT,W> wrappedFunction)
public void apply(Byte key, W window, IN input, org.apache.flink.util.Collector<OUT> out) throws Exception
InternalWindowFunctionapply in class InternalWindowFunction<IN,OUT,Byte,W extends Window>key - The key for which this window is evaluated.window - The window that is being evaluated.input - 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 open(org.apache.flink.configuration.Configuration parameters)
throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionExceptionpublic void close()
throws Exception
close in interface org.apache.flink.api.common.functions.RichFunctionExceptionpublic void setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t)
setRuntimeContext in interface org.apache.flink.api.common.functions.RichFunctionpublic org.apache.flink.api.common.functions.RuntimeContext getRuntimeContext()
getRuntimeContext in interface org.apache.flink.api.common.functions.RichFunctionpublic org.apache.flink.api.common.functions.IterationRuntimeContext getIterationRuntimeContext()
getIterationRuntimeContext in interface org.apache.flink.api.common.functions.RichFunctionpublic void setOutputType(org.apache.flink.api.common.typeinfo.TypeInformation<OUT> 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<OUT>outTypeInfo - Output type information of the StreamTaskexecutionConfig - Execution configurationCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.