public class GlobalAggCombiner extends Object implements RecordsCombiner
RecordsCombiner that accumulates local accumulators records into the
window accumulator state.
Note: this only supports event-time window.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GlobalAggCombiner.Factory
Factory to create
GlobalAggCombiner. |
RecordsCombiner.LocalFactory| 构造器和说明 |
|---|
GlobalAggCombiner(WindowTimerService<Long> timerService,
StateKeyContext keyContext,
WindowValueState<Long> accState,
NamespaceAggsHandleFunction<Long> localAggregator,
NamespaceAggsHandleFunction<Long> globalAggregator) |
public GlobalAggCombiner(WindowTimerService<Long> timerService, StateKeyContext keyContext, WindowValueState<Long> accState, NamespaceAggsHandleFunction<Long> localAggregator, NamespaceAggsHandleFunction<Long> globalAggregator)
public void combine(WindowKey windowKey, Iterator<org.apache.flink.table.data.RowData> localAccs) throws Exception
RecordsCombinercombine 在接口中 RecordsCombinerwindowKey - the window-key pair that the buffered data belong to, the window-key object
is reused.localAccs - 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.