Class Group.GroupId
- java.lang.Object
-
- dev.morphia.aggregation.experimental.stages.Group.GroupId
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GroupId()
protected
GroupId(Expression value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Group.GroupId
field(String name)
Adds a field to the group.Group.GroupId
field(String name, Expression expression)
Adds a named field to the group with an expression giving the value.DocumentExpression
getDocument()
Expression
getField()
-
-
-
Constructor Detail
-
GroupId
protected GroupId()
-
GroupId
protected GroupId(Expression value)
-
-
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, 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
public 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
public 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.
-
-