Class BucketAutoOptions


  • public class BucketAutoOptions
    extends java.lang.Object
    The options for a bucket auto stage of aggregation pipeline.
    Author:
    Roman Lapin
    • Constructor Detail

      • BucketAutoOptions

        public BucketAutoOptions()
    • Method Detail

      • toDBObject

        public com.mongodb.DBObject toDBObject()
        Converts a BucketAutoOptions to a DBObject for use by the Java driver.
        Returns:
        the DBObject
      • output

        public BucketAutoOptions.OutputOperation output​(java.lang.String fieldName)
        Define output field for the bucketauto stage
        Parameters:
        fieldName - name of the output field
        Returns:
        this
      • getAccumulators

        public java.util.Map<java.lang.String,​Accumulator> getAccumulators()
        Returns:
        output accumulators per output field