Implement a generic aggregation filter
- one input port of type
T
, one output port of typeAggregationContainer<T>
- aggregation is performed with a user-defined aggregation function on instances of type
T
class AggregationContainer<T> {
int count; // probably already accessible by the elements collection
? aggregatedBy
Collection<T> elements; // unordered or ordered?
}