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 BucketOptionsdefaultBucket(Object name)The name of the default bucket for values outside the defined bucketsbooleanequals(Object o)ObjectgetDefaultBucket()List<BsonField>getOutput()inthashCode()BucketOptionsoutput(BsonField... output)The definition of the output document in each bucketBucketOptionsoutput(List<BsonField> output)The definition of the output document in each bucketStringtoString()
-
-
-
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
-
-