public static enum Stream.Operation extends java.lang.Enum<Stream.Operation>
| Enum Constant and Description |
|---|
DELETE
Delete a record.
|
INSERT
Insert the record.
|
NOOP
No operation, ignored
|
SAFEDELETE
Delete record if it exist, noop otherwise
|
UPDATE
Update existing record.
|
UPSERT
Insert record if key does exist, update record otherwise
|
| Modifier and Type | Method and Description |
|---|---|
static char |
asChar(Stream.Operation op) |
int |
code() |
static Stream.Operation |
parseCharacter(char code) |
static Stream.Operation |
parseInt(int code) |
static Stream.Operation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Stream.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Stream.Operation NOOP
public static final Stream.Operation INSERT
public static final Stream.Operation UPDATE
public static final Stream.Operation DELETE
public static final Stream.Operation UPSERT
public static final Stream.Operation SAFEDELETE
public static Stream.Operation[] values()
for (Stream.Operation c : Stream.Operation.values()) System.out.println(c);
public static Stream.Operation 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 int code()
public static Stream.Operation parseInt(int code)
public static Stream.Operation parseCharacter(char code)
public static char asChar(Stream.Operation op)