java.lang.Object
org.apache.flink.table.runtime.operators.window.groupwindow.operator.WindowOperatorBuilder

public class WindowOperatorBuilder extends Object
The WindowOperatorBuilder is used to build WindowOperator fluently.

Note: You have to call the aggregate method before the last build method.

 WindowOperatorBuilder
   .builder(KeyedStream)
   .tumble(Duration.ofMinutes(1))       // sliding(...), session(...)
   .withEventTime()     // withProcessingTime()
   .withAllowedLateness(Duration.ZERO)
   .produceUpdates()
   .aggregate(AggregationsFunction, accTypes, windowTypes)
   .build();
 
  • Field Details

    • inputFieldTypes

      protected org.apache.flink.table.types.logical.LogicalType[] inputFieldTypes
    • windowAssigner

      protected GroupWindowAssigner<?> windowAssigner
    • trigger

      protected Trigger<?> trigger
    • accumulatorTypes

      protected org.apache.flink.table.types.logical.LogicalType[] accumulatorTypes
    • aggResultTypes

      protected org.apache.flink.table.types.logical.LogicalType[] aggResultTypes
    • windowPropertyTypes

      protected org.apache.flink.table.types.logical.LogicalType[] windowPropertyTypes
    • allowedLateness

      protected long allowedLateness
    • produceUpdates

      protected boolean produceUpdates
    • rowtimeIndex

      protected int rowtimeIndex
    • shiftTimeZone

      protected ZoneId shiftTimeZone
    • inputCountIndex

      protected int inputCountIndex
  • Constructor Details

    • WindowOperatorBuilder

      public WindowOperatorBuilder()
  • Method Details