public class LocalAggCombiner extends Object implements RecordsCombiner
RecordsCombiner that accumulates input records into local
accumulators.
Note: this only supports event-time window.
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalAggCombiner.Factory
Factory to create
LocalAggCombiner. |
RecordsCombiner.LocalFactory| Constructor and Description |
|---|
LocalAggCombiner(NamespaceAggsHandleFunction<Long> aggregator,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> collector) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release resources allocated by this combine function.
|
void |
combine(WindowKey windowKey,
Iterator<org.apache.flink.table.data.RowData> records)
Combines the buffered data into state based on the given window-key pair.
|
public LocalAggCombiner(NamespaceAggsHandleFunction<Long> aggregator, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> collector)
public void combine(WindowKey windowKey, Iterator<org.apache.flink.table.data.RowData> records) throws Exception
RecordsCombinercombine in interface RecordsCombinerwindowKey - the window-key pair that the buffered data belong to, the window-key object
is reused.records - the buffered data, the iterator and RowData objects are reused.Exceptionpublic void close()
throws Exception
RecordsCombinerclose in interface RecordsCombinerExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.