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:
person.firstname:john AND person.lastname=smith
would return the above document even though John Smith wasn't referenced in the document.public static final ObjectFieldStorage NESTED
This storage mode is generally less efficient, but has the advantage of
keeping structural information, allowing the use of
"nested" predicates
.
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-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.