Interface Aggregator<K,V,VAgg>
- Type Parameters:
K- key typeV- input value typeVAgg- aggregate value type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The
Aggregator interface for aggregating values of the given key.
This is a generalization of Reducer and allows to have different types for input value and aggregation
result.
Aggregator is used in combination with Initializer that provides an initial aggregation value.
Aggregator can be used to implement aggregation functions like count.
- See Also:
-
Method Summary
-
Method Details
-
apply
-