AggregationOperation

public protocol AggregationOperation

AggregationOperation’s represent the per-group operations within a “split-apply-combine” analysis. Types conforming to the AggregationOperation protocol can be used as aggregation functions within a “groupBy” operation.

Because AggregationOperations can be parallelized across multiple cores or hosts, they must support a “merge” operation, which can be used to aggregate the state within the operations themselves.