Package dev.morphia.aggregation.stages
Class Group.GroupId
- java.lang.Object
-
- dev.morphia.aggregation.stages.Group.GroupId
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Group.GroupIdfield(String name)Adds a field to the group.Group.GroupIdfield(String name, dev.morphia.aggregation.expressions.impls.Expression expression)Adds a named field to the group with an expression giving the value.dev.morphia.aggregation.expressions.impls.DocumentExpressiongetDocument()dev.morphia.aggregation.expressions.impls.ExpressiongetField()
-
-
-
Method Detail
-
field
public Group.GroupId field(String name)
Adds a field to the group. This method is equivalent to callingfield("name", Expression.field("name"))- Parameters:
name- the field name- Returns:
- this
- See Also:
field(String, Expression),Expressions.field(String)
-
field
public Group.GroupId field(String name, dev.morphia.aggregation.expressions.impls.Expression expression)
Adds a named field to the group with an expression giving the value.- Parameters:
name- the name of the fieldexpression- the expression giving the value- Returns:
- this
-
getDocument
@Nullable @MorphiaInternal public dev.morphia.aggregation.expressions.impls.DocumentExpression getDocument()
- Returns:
- the document
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
getField
@Nullable @MorphiaInternal public dev.morphia.aggregation.expressions.impls.Expression getField()
- Returns:
- the field
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-