Class BucketAutoOperation

All Implemented Interfaces:
AggregationOperation, FieldsExposingAggregationOperation

Encapsulates the aggregation framework $bucketAuto-operation.
Bucket stage is typically used with Aggregation and $facet. Categorizes incoming documents into a specific number of groups, called buckets, based on a specified expression. Bucket boundaries are automatically determined in an attempt to evenly distribute the documents into the specified number of buckets.
We recommend to use the static factory method Aggregation.bucketAuto(String, int) instead of creating instances of this class directly.
Since:
1.10
Author:
Mark Paluch, Christoph Strobl
See Also: