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();