|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.aggregation.Fields
public class Fields
Value object to capture a list of Field instances.
| Field Summary | |
|---|---|
static String |
UNDERSCORE_ID
|
static String |
UNDERSCORE_ID_REF
|
| Method Summary | |
|---|---|
Fields |
and(Field field)
|
Fields |
and(Fields fields)
|
Fields |
and(String name)
Creates a new Fields instance with a new Field of the given name added. |
Fields |
and(String name,
String target)
|
static Field |
field(String name)
Creates a Field with the given name. |
static Field |
field(String name,
String target)
|
static Fields |
fields(String... names)
Creates a new Fields instance for Fields with the given names. |
static Fields |
from(Field... fields)
Creates a new Fields instance from the given Fields. |
Field |
getField(String name)
|
Iterator<Field> |
iterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String UNDERSCORE_ID
public static String UNDERSCORE_ID_REF
| Method Detail |
|---|
public static Fields from(Field... fields)
Fields instance from the given Fields.
fields - must not be null or empty.
public static Fields fields(String... names)
Fields instance for Fields with the given names.
names - must not be null.
public static Field field(String name)
Field with the given name.
name - must not be null or empty.
public static Field field(String name,
String target)
public Fields and(String name)
Fields instance with a new Field of the given name added.
name - must not be null.
public Fields and(String name,
String target)
public Fields and(Field field)
public Fields and(Fields fields)
public Field getField(String name)
public Iterator<Field> iterator()
iterator in interface Iterable<Field>
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||