public class BucketAutoOptions extends Object
Constructor and Description |
---|
BucketAutoOptions() |
Modifier and Type | Method and Description |
---|---|
BucketGranularity |
getGranularity() |
List<BsonField> |
getOutput() |
BucketAutoOptions |
granularity(BucketGranularity granularity)
Specifies the granularity of the bucket definitions.
|
BucketAutoOptions |
output(BsonField... output)
The definition of the output document in each bucket
|
BucketAutoOptions |
output(List<BsonField> output)
The definition of the output document in each bucket
|
public BucketGranularity getGranularity()
public BucketAutoOptions granularity(BucketGranularity granularity)
granularity
- the granularity of the bucket definitionsBucketGranularity
public BucketAutoOptions output(BsonField... output)
output
- the output document definitionpublic BucketAutoOptions output(List<BsonField> output)
output
- the output document definition