Class Push
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 Summary
-
Method Details
-
field
- Specified by:
field
in interfacedev.morphia.aggregation.expressions.impls.FieldHolder<Push>
- Parameters:
name
- the field nameexpression
- the field value- Returns:
- this
-
single
Pushes a single, unnamed value- Parameters:
value
- the value to push- Returns:
- this
-