Class Fields
java.lang.Object
org.springframework.data.mongodb.core.aggregation.Fields
Value object to capture a list of
Field
instances.- Since:
- 1.3
- Author:
- Oliver Gierke, Thomas Darimont
-
Field Details
-
UNDERSCORE_ID
-
UNDERSCORE_ID_REF
- See Also:
-
-
Method Details
-
from
- Parameters:
fields
- must not be null or empty.- Returns:
-
fields
- Parameters:
names
- must not be null.- Returns:
-
field
Creates aField
with the given name.- Parameters:
name
- must not be null or empty.- Returns:
-
field
Creates aField
with the givenname
andtarget
.The
target
is the name of the backing document field that will be aliased withname
.- Parameters:
name
-target
- must not be null or empty- Returns:
-
and
- Parameters:
name
- must not be null.- Returns:
-
and
-
and
-
and
-
size
public int size() -
getField
-
iterator
-
asList
- Returns:
- Since:
- 1.10
-