public enum ObjectFieldStorage extends Enum<ObjectFieldStorage>
| Enum Constant and Description |
|---|
DEFAULT
Use the backend-specific default.
|
FLATTENED
Flatten multi-valued object fields.
|
NESTED
Store object fields as nested documents.
|
| Modifier and Type | Method and Description |
|---|---|
static ObjectFieldStorage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ObjectFieldStorage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObjectFieldStorage DEFAULT
public static final ObjectFieldStorage FLATTENED
This storage mode is generally more efficient, but has the disadvantage of losing structural information by making the leaf fields multi-valued instead of the object fields.
For instance this structure:
sidekicks.firstname:Barbara AND sidekicks.lastname=Grayson
would return the above document even though Barbara Grayson does not exist.public static final ObjectFieldStorage NESTED
This storage mode is generally less efficient, but has the advantage of
keeping structural information.
Note however that access to that information when querying
requires special care.
See in particular the "nested" predicate.
public static ObjectFieldStorage[] values()
for (ObjectFieldStorage c : ObjectFieldStorage.values()) System.out.println(c);
public static ObjectFieldStorage valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.