Package com.mongodb.client.model
Class BucketOptions
- java.lang.Object
-
- com.mongodb.client.model.BucketOptions
-
-
Constructor Summary
Constructors Constructor Description BucketOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BucketOptions
defaultBucket(Object name)
The name of the default bucket for values outside the defined bucketsObject
getDefaultBucket()
List<BsonField>
getOutput()
BucketOptions
output(BsonField... output)
The definition of the output document in each bucketBucketOptions
output(List<BsonField> output)
The definition of the output document in each bucketString
toString()
-
-
-
Method Detail
-
defaultBucket
public BucketOptions defaultBucket(@Nullable Object name)
The name of the default bucket for values outside the defined buckets- Parameters:
name
- the bucket value- Returns:
- this
-
output
public BucketOptions output(BsonField... output)
The definition of the output document in each bucket- Parameters:
output
- the output document definition- Returns:
- this
-
output
public BucketOptions output(List<BsonField> output)
The definition of the output document in each bucket- Parameters:
output
- the output document definition- Returns:
- this
-
-