public static enum DocWriteRequest.OpType extends java.lang.Enum<DocWriteRequest.OpType>
Enum Constant and Description |
---|
CREATE
Creates the resource.
|
DELETE
Deletes a document
|
INDEX
Index the source.
|
UPDATE
Updates a document
|
Modifier and Type | Method and Description |
---|---|
static DocWriteRequest.OpType |
fromId(byte id) |
static DocWriteRequest.OpType |
fromString(java.lang.String sOpType) |
byte |
getId() |
java.lang.String |
getLowercase() |
static DocWriteRequest.OpType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DocWriteRequest.OpType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocWriteRequest.OpType INDEX
public static final DocWriteRequest.OpType CREATE
public static final DocWriteRequest.OpType UPDATE
public static final DocWriteRequest.OpType DELETE
public static DocWriteRequest.OpType[] values()
for (DocWriteRequest.OpType c : DocWriteRequest.OpType.values()) System.out.println(c);
public static DocWriteRequest.OpType 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 nullpublic byte getId()
public java.lang.String getLowercase()
public static DocWriteRequest.OpType fromId(byte id)
public static DocWriteRequest.OpType fromString(java.lang.String sOpType)