public class BucketAutoOptions extends Object
| Constructor | Description |
|---|---|
BucketAutoOptions() |
| Modifier and Type | Method | 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
|
String |
toString() |
@Nullable public BucketGranularity getGranularity()
public BucketAutoOptions granularity(@Nullable BucketGranularity granularity)
granularity - the granularity of the bucket definitionsBucketGranularitypublic BucketAutoOptions output(BsonField... output)
output - the output document definitionpublic BucketAutoOptions output(@Nullable List<BsonField> output)
output - the output document definition