public enum WriteType extends Enum<WriteType>
Enum Constant and Description |
---|
BATCH
A write to a multiple partition key that used the distributed batch log to ensure atomicity
(atomicity meaning that if any statement in the batch succeeds, all will eventually succeed).
|
BATCH_LOG
The initial write to the distributed batch log that Cassandra performs internally before a BATCH write.
|
CAS
A conditional write.
|
COUNTER
A counter write (that can be for one or multiple partition key).
|
SIMPLE
A write to a single partition key.
|
UNLOGGED_BATCH
A write to a multiple partition key that doesn't use the distributed batch log.
|
Modifier and Type | Method and Description |
---|---|
static WriteType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteType SIMPLE
public static final WriteType BATCH
public static final WriteType UNLOGGED_BATCH
public static final WriteType COUNTER
public static final WriteType BATCH_LOG
public static final WriteType CAS
WriteType
, the timeout has happened while doing the compare-and-swap for
an conditional update. In this case, the update may or may not have been applied.public static WriteType[] values()
for (WriteType c : WriteType.values()) System.out.println(c);
public static WriteType 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 null