java.lang.Object
dev.morphia.aggregation.expressions.impls.Expression
dev.morphia.aggregation.expressions.impls.Push
All Implemented Interfaces:
dev.morphia.aggregation.expressions.impls.FieldHolder<Push>

public class Push extends Expression implements dev.morphia.aggregation.expressions.impls.FieldHolder<Push>
Returns an array of all values that result from applying an expression to each document in a group of documents that share the same group by key.
  • Method Details

    • field

      public Push field(String name, Object expression)
      Specified by:
      field in interface dev.morphia.aggregation.expressions.impls.FieldHolder<Push>
      Parameters:
      name - the field name
      expression - the field value
      Returns:
      this
    • single

      public Push single(Object value)
      Pushes a single, unnamed value
      Parameters:
      value - the value to push
      Returns:
      this