Class WindowOperatorBuilder<T,K,W extends Window>
- java.lang.Object
-
- org.apache.flink.streaming.runtime.operators.windowing.WindowOperatorBuilder<T,K,W>
-
- Type Parameters:
K- The type of key returned by theKeySelector.T- The type of the incoming elements.W- The type ofWindowthat theWindowAssignerassigns.
public class WindowOperatorBuilder<T,K,W extends Window> extends Object
A builder for creatingWindowOperators.
-
-
Constructor Summary
Constructors Constructor Description WindowOperatorBuilder(WindowAssigner<? super T,W> windowAssigner, Trigger<? super T,? super W> trigger, org.apache.flink.api.common.ExecutionConfig config, org.apache.flink.api.common.typeinfo.TypeInformation<T> inputType, org.apache.flink.api.java.functions.KeySelector<T,K> keySelector, org.apache.flink.api.common.typeinfo.TypeInformation<K> keyType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <ACC,V,R>
OneInputStreamOperator<T,R>aggregate(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,V> aggregateFunction, ProcessWindowFunction<V,R,K,W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType)<ACC,V,R>
OneInputStreamOperator<T,R>aggregate(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,V> aggregateFunction, WindowFunction<V,R,K,W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType)voidallowedLateness(Duration lateness)<R> OneInputStreamOperator<T,R>apply(WindowFunction<T,R,K,W> function)<ACC,V,R>
OneInputStreamOperator<T,R>asyncAggregate(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,V> aggregateFunction, ProcessWindowFunction<V,R,K,W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType)<ACC,V,R>
OneInputStreamOperator<T,R>asyncAggregate(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,V> aggregateFunction, WindowFunction<V,R,K,W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType)<R> OneInputStreamOperator<T,R>asyncApply(WindowFunction<T,R,K,W> function)<R> OneInputStreamOperator<T,R>asyncProcess(ProcessWindowFunction<T,R,K,W> function)<R> OneInputStreamOperator<T,R>asyncReduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, ProcessWindowFunction<T,R,K,W> function)<R> OneInputStreamOperator<T,R>asyncReduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, WindowFunction<T,R,K,W> function)WindowOperatorBuilder<T,K,W>asyncTrigger(AsyncTrigger<? super T,? super W> asyncTrigger)voidevictor(Evictor<? super T,? super W> evictor)protected static StringgenerateFunctionName(org.apache.flink.api.common.functions.Function function)StringgenerateOperatorDescription(org.apache.flink.api.common.functions.Function function1, org.apache.flink.api.common.functions.Function function2)StringgenerateOperatorName()longgetAllowedLateness()<R> OneInputStreamOperator<T,R>process(ProcessWindowFunction<T,R,K,W> function)<R> OneInputStreamOperator<T,R>reduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, ProcessWindowFunction<T,R,K,W> function)<R> OneInputStreamOperator<T,R>reduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, WindowFunction<T,R,K,W> function)voidsideOutputLateData(org.apache.flink.util.OutputTag<T> outputTag)voidtrigger(Trigger<? super T,? super W> trigger)
-
-
-
Constructor Detail
-
WindowOperatorBuilder
public WindowOperatorBuilder(WindowAssigner<? super T,W> windowAssigner, Trigger<? super T,? super W> trigger, org.apache.flink.api.common.ExecutionConfig config, org.apache.flink.api.common.typeinfo.TypeInformation<T> inputType, org.apache.flink.api.java.functions.KeySelector<T,K> keySelector, org.apache.flink.api.common.typeinfo.TypeInformation<K> keyType)
-
-
Method Detail
-
asyncTrigger
public WindowOperatorBuilder<T,K,W> asyncTrigger(AsyncTrigger<? super T,? super W> asyncTrigger)
-
allowedLateness
public void allowedLateness(Duration lateness)
-
sideOutputLateData
public void sideOutputLateData(org.apache.flink.util.OutputTag<T> outputTag)
-
reduce
public <R> OneInputStreamOperator<T,R> reduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, WindowFunction<T,R,K,W> function)
-
asyncReduce
public <R> OneInputStreamOperator<T,R> asyncReduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, WindowFunction<T,R,K,W> function)
-
reduce
public <R> OneInputStreamOperator<T,R> reduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, ProcessWindowFunction<T,R,K,W> function)
-
asyncReduce
public <R> OneInputStreamOperator<T,R> asyncReduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, ProcessWindowFunction<T,R,K,W> function)
-
aggregate
public <ACC,V,R> OneInputStreamOperator<T,R> aggregate(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,V> aggregateFunction, WindowFunction<V,R,K,W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType)
-
asyncAggregate
public <ACC,V,R> OneInputStreamOperator<T,R> asyncAggregate(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,V> aggregateFunction, WindowFunction<V,R,K,W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType)
-
aggregate
public <ACC,V,R> OneInputStreamOperator<T,R> aggregate(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,V> aggregateFunction, ProcessWindowFunction<V,R,K,W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType)
-
asyncAggregate
public <ACC,V,R> OneInputStreamOperator<T,R> asyncAggregate(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,V> aggregateFunction, ProcessWindowFunction<V,R,K,W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType)
-
apply
public <R> OneInputStreamOperator<T,R> apply(WindowFunction<T,R,K,W> function)
-
process
public <R> OneInputStreamOperator<T,R> process(ProcessWindowFunction<T,R,K,W> function)
-
asyncApply
public <R> OneInputStreamOperator<T,R> asyncApply(WindowFunction<T,R,K,W> function)
-
asyncProcess
public <R> OneInputStreamOperator<T,R> asyncProcess(ProcessWindowFunction<T,R,K,W> function)
-
generateFunctionName
protected static String generateFunctionName(org.apache.flink.api.common.functions.Function function)
-
generateOperatorName
public String generateOperatorName()
-
generateOperatorDescription
public String generateOperatorDescription(org.apache.flink.api.common.functions.Function function1, @Nullable org.apache.flink.api.common.functions.Function function2)
-
getAllowedLateness
@VisibleForTesting public long getAllowedLateness()
-
-