public enum IndexType extends java.lang.Enum<IndexType>
DEFAULT).
For some queries/use cases it might make sense to override the default choice for optimization purposes.
Note: hash indexes are currently only supported for string properties.
| Enum Constant and Description |
|---|
DEFAULT
|
HASH
Use a (fast non-cryptographic) hash of the property value to build the index.
|
HASH64
Use a long (fast non-cryptographic) hash of the property value to build the index.
|
VALUE
Use the property value to build the index.
|
| Modifier and Type | Method and Description |
|---|---|
static IndexType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IndexType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexType DEFAULT
public static final IndexType VALUE
public static final IndexType HASH
HASH64 as it takes less space.public static final IndexType HASH64
public static IndexType[] values()
for (IndexType c : IndexType.values()) System.out.println(c);
public static IndexType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null