Package com.mongodb.client.model
Class BucketAutoOptions
-
- com.mongodb.client.model.BucketAutoOptions
-
public class BucketAutoOptions extends
The options for a $bucketAuto aggregation pipeline stage- Since:
- 3.4
- MongoDB documentation
- Since server release
-
-
Constructor Summary
Constructors Constructor Description BucketAutoOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
o)
BucketGranularity
getGranularity()
<BsonField>
getOutput()
BucketAutoOptions
granularity(BucketGranularity granularity)
Specifies the granularity of the bucket definitions.int
hashCode()
BucketAutoOptions
output(BsonField... output)
The definition of the output document in each bucketBucketAutoOptions
<BsonField> output)
The definition of the output document in each buckettoString()
-
-
-
Method Detail
-
getGranularity
@Nullable public BucketGranularity getGranularity()
- Returns:
- the granularity of the bucket definitions
-
granularity
public BucketAutoOptions granularity(@Nullable BucketGranularity granularity)
Specifies the granularity of the bucket definitions.- Parameters:
granularity
- the granularity of the bucket definitions- Returns:
- this
- See Also:
- ,
BucketGranularity
-
output
public BucketAutoOptions output(BsonField... output)
The definition of the output document in each bucket- Parameters:
output
- the output document definition- Returns:
- this
-
output
public BucketAutoOptions output(@Nullable <BsonField> output)
The definition of the output document in each bucket- Parameters:
output
- the output document definition- Returns:
- this
-
equals
public boolean equals( o)
- Overrides:
in class
-
hashCode
public int hashCode()
- Overrides:
in class
-
toString
public toString()
- Overrides:
in class
-
-