Class BucketAutoOptions


  • @Deprecated(since="2.0",
                forRemoval=true)
    public class BucketAutoOptions
    extends Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    use AutoBucket instead
    The options for a bucket auto stage of aggregation pipeline.
    Author:
    Roman Lapin
    • Constructor Detail

      • BucketAutoOptions

        public BucketAutoOptions()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • toDocument

        public org.bson.Document toDocument()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Converts a BucketAutoOptions to a Document for use by the Java driver.
        Returns:
        the Document
      • output

        public BucketAutoOptions.OutputOperation output​(String fieldName)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Define output field for the bucketauto stage
        Parameters:
        fieldName - name of the output field
        Returns:
        this
      • getGranularity

        public BucketAutoOptions.Granularity getGranularity()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns:
        granurality for the current bucketauto stage
      • 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