Class WindowAggOperatorBuilder
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.aggregate.window.WindowAggOperatorBuilder
-
public class WindowAggOperatorBuilder extends Object
TheWindowAggOperatorBuilder
is used to build aWindowAggOperator
withSlicingWindowProcessor
or aUnslicingWindowProcessor
.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();
-
-
Constructor Summary
Constructors Constructor Description WindowAggOperatorBuilder()
-
Method Summary
-
-
-
Method Detail
-
builder
public static WindowAggOperatorBuilder builder()
-
inputSerializer
public WindowAggOperatorBuilder inputSerializer(AbstractRowDataSerializer<RowData> inputSerializer)
-
shiftTimeZone
public WindowAggOperatorBuilder shiftTimeZone(ZoneId shiftTimeZone)
-
keySerializer
public WindowAggOperatorBuilder keySerializer(PagedTypeSerializer<RowData> keySerializer)
-
assigner
public WindowAggOperatorBuilder assigner(WindowAssigner assigner)
-
aggregate
public WindowAggOperatorBuilder aggregate(GeneratedNamespaceAggsHandleFunction<?> generatedAggregateFunction, AbstractRowDataSerializer<RowData> accSerializer)
-
globalAggregate
public WindowAggOperatorBuilder globalAggregate(GeneratedNamespaceAggsHandleFunction<?> localGeneratedAggregateFunction, GeneratedNamespaceAggsHandleFunction<?> globalGeneratedAggregateFunction, GeneratedNamespaceAggsHandleFunction<?> stateGeneratedAggregateFunction, AbstractRowDataSerializer<RowData> accSerializer)
-
countStarIndex
public WindowAggOperatorBuilder countStarIndex(int indexOfCountStart)
Specify the index position of the COUNT(*) value in the accumulator buffer. This is only required for Hopping windows which uses this to determine whether the window is empty and then decide whether to register timer for the next window.
-
build
public WindowAggOperator<RowData,?> build()
-
-