Package dev.morphia.query
Class BucketOptions
- java.lang.Object
-
- dev.morphia.query.BucketOptions
-
@Deprecated(since="2.0", forRemoval=true) public class BucketOptions extends Object
Deprecated, for removal: This API element is subject to removal in a future version.useBucket
insteadThe options for a bucket stage of aggregation pipeline.- Author:
- Roman Lapin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BucketOptions.OutputOperation
Deprecated, for removal: This API element is subject to removal in a future version.Defines an output for bucketauto stage, that consists of the fieldname and the accumulator
-
Constructor Summary
Constructors Constructor Description BucketOptions()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BucketOptions
defaultField(Object defaultField)
Deprecated, for removal: This API element is subject to removal in a future version.Define default field for the bucket stageMap<String,Accumulator>
getAccumulators()
Deprecated, for removal: This API element is subject to removal in a future version.Object
getDefaultField()
Deprecated, for removal: This API element is subject to removal in a future version.BucketOptions.OutputOperation
output(String fieldName)
Deprecated, for removal: This API element is subject to removal in a future version.Define output field for the bucket stageDocument
toDocument()
Deprecated, for removal: This API element is subject to removal in a future version.Converts a BucketOptions to a Document for use by the Java driver.
-
-
-
Method Detail
-
toDocument
public Document toDocument()
Deprecated, for removal: This API element is subject to removal in a future version.Converts a BucketOptions to a Document for use by the Java driver.- Returns:
- the Document
-
defaultField
public BucketOptions defaultField(Object defaultField)
Deprecated, for removal: This API element is subject to removal in a future version.Define default field for the bucket stage- Parameters:
defaultField
- name of the field- Returns:
- this
-
output
public BucketOptions.OutputOperation output(String fieldName)
Deprecated, for removal: This API element is subject to removal in a future version.Define output field for the bucket stage- Parameters:
fieldName
- name of the output field- Returns:
- this
-
getDefaultField
public Object getDefaultField()
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- default bucket name
-
getAccumulators
public Map<String,Accumulator> getAccumulators()
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- output accumulators per output field
-
-