Class WindowOperatorBuilder<T,​K,​W extends Window>

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

      • trigger

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