public class LocalAggCombiner extends Object implements RecordsCombiner
RecordsCombiner that accumulates input records into local
accumulators.
Note: this only supports event-time window.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
LocalAggCombiner.Factory
Factory to create
LocalAggCombiner. |
RecordsCombiner.LocalFactory| 构造器和说明 |
|---|
LocalAggCombiner(NamespaceAggsHandleFunction<Long> aggregator,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> collector) |
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 在接口中 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 在接口中 RecordsCombinerExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.