Class BucketAutoOptions


  • public class BucketAutoOptions
    extends java.lang.Object
    The options for a $bucketAuto aggregation pipeline stage
    Since:
    3.4
    • Constructor Detail

      • BucketAutoOptions

        public BucketAutoOptions()
    • Method Detail

      • getGranularity

        @Nullable
        public BucketGranularity getGranularity()
        Returns:
        the granularity of the bucket definitions
      • getOutput

        @Nullable
        public java.util.List<BsonField> getOutput()
        Returns:
        the output document definition
      • output

        public BucketAutoOptions output​(BsonField... output)
        The definition of the output document in each bucket
        Parameters:
        output - the output document definition
        Returns:
        this
      • output

        public BucketAutoOptions output​(@Nullable
                                        java.util.List<BsonField> output)
        The definition of the output document in each bucket
        Parameters:
        output - the output document definition
        Returns:
        this
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object