java.io.Serializable
, java.lang.Comparable<DocWriteResponse.Result>
, Writeable
public static enum DocWriteResponse.Result extends java.lang.Enum<DocWriteResponse.Result> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Enum Constant | Description |
---|---|
CREATED |
|
DELETED |
|
NOOP |
|
NOT_FOUND |
|
UPDATED |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getLowercase() |
|
byte |
getOp() |
|
static DocWriteResponse.Result |
readFrom(StreamInput in) |
|
static DocWriteResponse.Result |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static DocWriteResponse.Result[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
public static final DocWriteResponse.Result CREATED
public static final DocWriteResponse.Result UPDATED
public static final DocWriteResponse.Result DELETED
public static final DocWriteResponse.Result NOT_FOUND
public static final DocWriteResponse.Result NOOP
public static DocWriteResponse.Result[] values()
for (DocWriteResponse.Result c : DocWriteResponse.Result.values()) System.out.println(c);
public static DocWriteResponse.Result 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 getOp()
public java.lang.String getLowercase()
public static DocWriteResponse.Result readFrom(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable