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 Summary
Modifier and TypeMethodDescriptionvoidappendGroup(TupleVector input, ValueVector groupIds, ValueVector selections, IExecutionContext context) Appends a group data to aggregator.combine(IExecutionContext context) Combine the aggregators state into a resulting ValueVector.
-
Method Details
-
appendGroup
void appendGroup(TupleVector input, ValueVector groupIds, ValueVector selections, IExecutionContext context) Appends a group data to aggregator.- Parameters:
input- The input vectorgroupIds- Integer Vector with group idsselections- Vector with selections for each group. Type is Array[Int]. Same size as @param groupIds
-
combine
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)
-