Class AsyncStateAggCombiner
java.lang.Object
org.apache.flink.table.runtime.operators.aggregate.asyncwindow.combines.AsyncStateAggCombiner
- All Implemented Interfaces:
AsyncStateRecordsCombiner
An implementation of
RecordsCombiner that accumulates input records into the window
accumulator with async state.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAsyncStateAggCombiner(WindowTimerService<Long> timerService, WindowAsyncValueState<Long> accState, NamespaceAggsHandleFunction<Long> aggregator, boolean isEventTime) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.common.state.v2.StateFuture<Void>asyncCombine(Long window, Iterator<org.apache.flink.table.data.RowData> records) Combines the buffered data into async state based on the given window.voidclose()Release resources allocated by this combine function.
-
Constructor Details
-
AsyncStateAggCombiner
public AsyncStateAggCombiner(WindowTimerService<Long> timerService, WindowAsyncValueState<Long> accState, NamespaceAggsHandleFunction<Long> aggregator, boolean isEventTime)
-
-
Method Details
-
asyncCombine
public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncCombine(Long window, Iterator<org.apache.flink.table.data.RowData> records) throws Exception Description copied from interface:AsyncStateRecordsCombinerCombines the buffered data into async state based on the given window.- Specified by:
asyncCombinein interfaceAsyncStateRecordsCombiner- Parameters:
window- the window that the buffered data belong to, the window object is reused.records- the buffered data, the iterator andRowDataobjects are reused.- Throws:
Exception
-
close
Description copied from interface:AsyncStateRecordsCombinerRelease resources allocated by this combine function.- Specified by:
closein interfaceAsyncStateRecordsCombiner- Throws:
Exception
-