Class AsyncStateAggCombiner
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.aggregate.asyncwindow.combines.AsyncStateAggCombiner
-
- All Implemented Interfaces:
AsyncStateRecordsCombiner
public class AsyncStateAggCombiner extends Object implements AsyncStateRecordsCombiner
An implementation ofRecordsCombinerthat accumulates input records into the window accumulator with async state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAsyncStateAggCombiner.FactoryFactory to createAsyncStateAggCombiner.
-
Constructor Summary
Constructors Constructor Description AsyncStateAggCombiner(WindowTimerService<Long> timerService, WindowAsyncValueState<Long> accState, NamespaceAggsHandleFunction<Long> aggregator, boolean isEventTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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 Detail
-
AsyncStateAggCombiner
public AsyncStateAggCombiner(WindowTimerService<Long> timerService, WindowAsyncValueState<Long> accState, NamespaceAggsHandleFunction<Long> aggregator, boolean isEventTime)
-
-
Method Detail
-
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
public void close() throws ExceptionDescription copied from interface:AsyncStateRecordsCombinerRelease resources allocated by this combine function.- Specified by:
closein interfaceAsyncStateRecordsCombiner- Throws:
Exception
-
-