public static enum BulkOperation.Action extends java.lang.Enum<BulkOperation.Action>
| Enum Constant and Description |
|---|
CREATE
CREATE has put-if-absent semantics.
|
DELETE
DELETE does not expect a source on the following line, and has the same semantics as the
standard delete API.
|
INDEX
Unlike
CREATE, INDEX will add or replace document as necessary. |
UPDATE
UPDATE expects that next line is a partial document or a script.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasSource() |
java.lang.String |
toString() |
static BulkOperation.Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BulkOperation.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BulkOperation.Action CREATE
public static final BulkOperation.Action DELETE
public static final BulkOperation.Action INDEX
CREATE, INDEX will add or replace document as necessary.public static final BulkOperation.Action UPDATE
public static BulkOperation.Action[] values()
for (BulkOperation.Action c : BulkOperation.Action.values()) System.out.println(c);
public static BulkOperation.Action 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 final boolean hasSource()
public java.lang.String toString()
toString in class java.lang.Enum<BulkOperation.Action>