Class AggCombiner
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.aggregate.window.combines.AggCombiner
-
- All Implemented Interfaces:
RecordsCombiner
public class AggCombiner extends Object implements RecordsCombiner
An implementation ofRecordsCombiner
that accumulates input records into the window accumulator state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AggCombiner.Factory
Factory to createAggCombiner
.-
Nested classes/interfaces inherited from interface org.apache.flink.table.runtime.operators.window.tvf.combines.RecordsCombiner
RecordsCombiner.LocalFactory
-
-
Constructor Summary
Constructors Constructor Description AggCombiner(WindowTimerService<Long> timerService, StateKeyContext keyContext, WindowValueState<Long> accState, NamespaceAggsHandleFunction<Long> aggregator, boolean isEventTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Release resources allocated by this combine function.void
combine(WindowKey windowKey, Iterator<RowData> records)
Combines the buffered data into state based on the given window-key pair.
-
-
-
Constructor Detail
-
AggCombiner
public AggCombiner(WindowTimerService<Long> timerService, StateKeyContext keyContext, WindowValueState<Long> accState, NamespaceAggsHandleFunction<Long> aggregator, boolean isEventTime)
-
-
Method Detail
-
combine
public void combine(WindowKey windowKey, Iterator<RowData> records) throws Exception
Description copied from interface:RecordsCombiner
Combines the buffered data into state based on the given window-key pair.- Specified by:
combine
in interfaceRecordsCombiner
- Parameters:
windowKey
- the window-key pair that the buffered data belong to, the window-key object is reused.records
- the buffered data, the iterator andRowData
objects are reused.- Throws:
Exception
-
close
public void close() throws Exception
Description copied from interface:RecordsCombiner
Release resources allocated by this combine function.- Specified by:
close
in interfaceRecordsCombiner
- Throws:
Exception
-
-