Class 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 Detail

      • inputFieldTypes

        protected org.apache.flink.table.types.logical.LogicalType[] inputFieldTypes
      • 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 java.time.ZoneId shiftTimeZone
      • inputCountIndex

        protected int inputCountIndex
    • Constructor Detail

      • WindowOperatorBuilder

        public WindowOperatorBuilder()