Class BucketOperation

All Implemented Interfaces:
AggregationOperation, FieldsExposingAggregationOperation

Encapsulates the aggregation framework $bucket-operation.
Bucket stage is typically used with Aggregation and $facet. Categorizes incoming documents into groups, called buckets, based on a specified expression and bucket boundaries.
We recommend to use the static factory method Aggregation.bucket(String) instead of creating instances of this class directly.
Since:
1.10
Author:
Mark Paluch
See Also: