Package com.mongodb.client.model
Class BucketOptions
java.lang.Object
com.mongodb.client.model.BucketOptions
The options for a $bucket aggregation pipeline stage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefaultBucket
(Object name) The name of the default bucket for values outside the defined bucketsboolean
int
hashCode()
The definition of the output document in each bucketThe definition of the output document in each buckettoString()
-
Constructor Details
-
BucketOptions
public BucketOptions()
-
-
Method Details
-
defaultBucket
The name of the default bucket for values outside the defined buckets- Parameters:
name
- the bucket value- Returns:
- this
-
getDefaultBucket
- Returns:
- the default bucket value
-
getOutput
- Returns:
- the output document definition
-
output
The definition of the output document in each bucket- Parameters:
output
- the output document definition- Returns:
- this
-
output
The definition of the output document in each bucket- Parameters:
output
- the output document definition- Returns:
- this
-
equals
-
hashCode
public int hashCode() -
toString
-