public enum IndexType extends Enum<IndexType>
| Enum Constant and Description |
|---|
ASC |
DESC |
GEO2D |
GEO2DSPHERE |
HASHED |
TEXT |
| Modifier and Type | Method and Description |
|---|---|
Object |
toIndexValue()
Returns the value as needed by the index definition document
|
static IndexType |
valueOf(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 ASC
public static final IndexType DESC
public static final IndexType GEO2D
public static final IndexType GEO2DSPHERE
public static final IndexType HASHED
public static final IndexType TEXT
public static IndexType[] values()
for (IndexType c : IndexType.values()) System.out.println(c);
public static IndexType 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 nullpublic Object toIndexValue()