|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<IndexRequest.OpType> org.elasticsearch.action.index.IndexRequest.OpType
public static enum IndexRequest.OpType
Operation type controls if the type of the index operation.
Enum Constant Summary | |
---|---|
CREATE
Creates the resource. |
|
INDEX
Index the source. |
Method Summary | |
---|---|
static IndexRequest.OpType |
fromId(byte id)
Constructs the operation type from its internal representation. |
byte |
id()
The internal representation of the operation type. |
static IndexRequest.OpType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IndexRequest.OpType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final IndexRequest.OpType INDEX
public static final IndexRequest.OpType CREATE
Method Detail |
---|
public static IndexRequest.OpType[] values()
for (IndexRequest.OpType c : IndexRequest.OpType.values()) System.out.println(c);
public static IndexRequest.OpType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic byte id()
public static IndexRequest.OpType fromId(byte id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |