java.lang.Object
org.apache.flink.table.runtime.operators.aggregate.window.combines.LocalAggCombiner
All Implemented Interfaces:
RecordsCombiner

public class LocalAggCombiner extends Object implements RecordsCombiner
An implementation of RecordsCombiner that accumulates input records into local accumulators.

Note: this only supports event-time window.

  • Constructor Details

    • LocalAggCombiner

      public LocalAggCombiner(NamespaceAggsHandleFunction<Long> aggregator, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> collector)
  • Method Details

    • combine

      public void combine(WindowKey windowKey, Iterator<org.apache.flink.table.data.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 interface RecordsCombiner
      Parameters:
      windowKey - 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.
      Throws:
      Exception
    • close

      public void close() throws Exception
      Description copied from interface: RecordsCombiner
      Release resources allocated by this combine function.
      Specified by:
      close in interface RecordsCombiner
      Throws:
      Exception