org.springframework.data.mongodb.core.aggregation

Class BucketOperationSupport.OutputBuilder<B extends BucketOperationSupport.OutputBuilder<B,T>,T extends BucketOperationSupport<T,B>>

  • java.lang.Object
    • org.springframework.data.mongodb.core.aggregation.BucketOperationSupport.OutputBuilder<B,T>
    • Method Detail

      • count

        public B count()
        Generates a builder for a $sum-expression.
        Count expressions are emulated via $sum: 1.
        Returns:
      • sum

        public B sum()
        Generates a builder for a $sum-expression for the current value.
        Returns:
      • sum

        public B sum(Number value)
        Generates a builder for a $sum-expression for the given value.
        Parameters:
        value -
        Returns:
      • last

        public B last()
        Generates a builder for an $last-expression for the current value..
        Returns:
      • first

        public B first()
        Generates a builder for a $first-expression the current value.
        Returns:
      • avg

        public B avg()
        Generates a builder for an $avg-expression for the current value.
        Parameters:
        reference -
        Returns:
      • min

        public B min()
        Generates a builder for an $min-expression for the current value.
        Returns:
      • max

        public B max()
        Generates a builder for an $max-expression for the current value.
        Returns:
      • push

        public B push()
        Generates a builder for an $push-expression for the current value.
        Returns:
      • addToSet

        public B addToSet()
        Generates a builder for an $addToSet-expression for the current value.
        Returns:
      • apply

        public B apply(String operation,
                       Object... values)
        Apply an operator to the current value.
        Parameters:
        operation - the operation name, must not be null or empty.
        values - must not be null.
        Returns:
      • as

        public T as(String alias)
        Returns the finally to be applied BucketOperation with the given alias.
        Parameters:
        alias - will never be null or empty.
        Returns: