Class WindowAggOperatorBuilder


  • public class WindowAggOperatorBuilder
    extends Object
    The WindowAggOperatorBuilder is used to build a WindowAggOperator with SlicingWindowProcessor or a UnslicingWindowProcessor.
     WindowAggOperatorBuilder.builder()
       .inputType(inputType)
       .keyTypes(keyFieldTypes)
       .assigner(SliceAssigners.tumbling(rowtimeIndex, Duration.ofSeconds(5)))
       .aggregate(genAggsFunction), accTypes)
       .build();
     

    or

     WindowAggOperatorBuilder.builder()
       .inputType(inputType)
       .keyTypes(keyFieldTypes)
       .assigner(UnsliceAssigners.session(rowtimeIndex, Duration.ofSeconds(5)))
       .aggregate(genAggsFunction), accTypes)
       .build();