BucketAuto class
$bucketAuto
aggregation stage
Stage description
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.
Each bucket is represented as a document in the output. The document for each bucket contains an _id field, whose value specifies the inclusive lower bound and the exclusive upper bound for the bucket, and a count field that contains the number of documents in the bucket. The count field is included by default when the output is not specified.
https://docs.mongodb.com/manual/reference/operator/aggregation/bucketAuto/
- Inheritance
-
- Object
- AggregationStage
- BucketAuto
Constructors
-
BucketAuto({required AggregationExpr groupBy, required int buckets, Map<
String, Accumulator> ? output, Granularity? granularity}) -
Creates
$bucketAuto
aggregation stage
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
) → Map< String, Object> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited