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 the KeySelector.
T - The type of the incoming elements.
W - The type of Window that the WindowAssigner assigns.

public class WindowOperatorBuilder<T,K,W extends Window> extends Object
A builder for creating WindowOperators.
  • Constructor Details

    • 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 Details

    • trigger

      public void trigger(Trigger<? super T,? super W> trigger)
    • 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)
    • evictor

      public void evictor(Evictor<? super T,? super W> evictor)
    • 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()