in core/src/main/java/org/apache/rocketmq/streams/core/function/supplier/WindowAggregateSupplier.java [60:71]
public Processor<V> get() {
WindowInfo.WindowType windowType = windowInfo.getWindowType();
switch (windowType) {
case SLIDING_WINDOW:
case TUMBLING_WINDOW:
return new WindowAggregateProcessor(name, windowInfo, initAction, aggregateAction);
case SESSION_WINDOW:
return new SessionWindowAggregateProcessor(name, windowInfo, initAction, aggregateAction);
default:
throw new RuntimeException("window type is error, WindowType=" + windowType);
}
}