public static enum IndexRequest.OpType extends Enum<IndexRequest.OpType>
Enum Constant and Description |
---|
CREATE
Creates the resource.
|
INDEX
Index the source.
|
Modifier and Type | Method and Description |
---|---|
static IndexRequest.OpType |
fromId(byte id)
Constructs the operation type from its internal representation.
|
static IndexRequest.OpType |
fromString(String sOpType) |
byte |
id()
The internal representation of the operation type.
|
String |
lowercase() |
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.
|
public static final IndexRequest.OpType INDEX
public static final IndexRequest.OpType CREATE
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 nameNullPointerException
- if the argument is nullpublic byte id()
public String lowercase()
public static IndexRequest.OpType fromId(byte id)
public static IndexRequest.OpType fromString(String sOpType)
Copyright © 2009–2017. All rights reserved.