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(java.lang.Object name)The name of the default bucket for values outside the defined bucketsbooleanequals(java.lang.Object o)java.lang.ObjectgetDefaultBucket()java.util.List<BsonField>getOutput()inthashCode()BucketOptionsoutput(BsonField... output)The definition of the output document in each bucketBucketOptionsoutput(java.util.List<BsonField> output)The definition of the output document in each bucketjava.lang.StringtoString()
-
-
-
Method Detail
-
defaultBucket
public BucketOptions defaultBucket(@Nullable java.lang.Object name)
The name of the default bucket for values outside the defined buckets- Parameters:
name- the bucket value- Returns:
- this
-
getDefaultBucket
@Nullable public java.lang.Object getDefaultBucket()
- Returns:
- the default bucket value
-
getOutput
@Nullable public java.util.List<BsonField> getOutput()
- Returns:
- the output document definition
-
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(java.util.List<BsonField> output)
The definition of the output document in each bucket- Parameters:
output- the output document definition- Returns:
- this
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-