Interface IAggregator


public interface IAggregator
Definition of an aggregator. This is created once for each expression that is used during an aggregation session to keep state until stream is complete
  • Method Details

    • appendGroup

      void appendGroup(TupleVector input, ValueVector groupIds, ValueVector selections, IExecutionContext context)
      Appends a group data to aggregator.
      Parameters:
      input - The input vector
      groupIds - Integer Vector with group ids
      selections - Vector with selections for each group. Type is Array[Int]. Same size as @param groupIds
    • combine

      ValueVector combine(IExecutionContext context)
      Combine the aggregators state into a resulting ValueVector. The resulting vector must contain and be ordered by all the groupId's provided by #appendGroup(TupleVector, IExecutionContext)