@API(value=MAINTAINED) public enum IndexState extends Enum<IndexState>
Enum Constant and Description |
---|
DISABLED
Indicates that this store does not
use this index.
|
READABLE
This is the default state for an index.
|
WRITE_ONLY
Indicates the index should not be read from
but is written to.
|
Modifier and Type | Method and Description |
---|---|
Object |
code()
Value corresponding to the state.
|
static IndexState |
fromCode(Object code) |
String |
getLogName() |
static IndexState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndexState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexState READABLE
public static final IndexState WRITE_ONLY
public static final IndexState DISABLED
public static IndexState[] values()
for (IndexState c : IndexState.values()) System.out.println(c);
public static IndexState 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 null@Nonnull public Object code()
public String getLogName()
public static IndexState fromCode(@Nonnull Object code)