public enum DefaultBatchType extends Enum<DefaultBatchType> implements BatchType
Enum Constant and Description |
---|
COUNTER
A counter batch.
|
LOGGED
A logged batch: Cassandra will first write the batch to its distributed batch log to ensure the
atomicity of the batch (atomicity meaning that if any statement in the batch succeeds, all will
eventually succeed).
|
UNLOGGED
A batch that doesn't use Cassandra's distributed batch log.
|
Modifier and Type | Method and Description |
---|---|
byte |
getProtocolCode()
The numerical value that the batch type is encoded to.
|
static DefaultBatchType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultBatchType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultBatchType LOGGED
public static final DefaultBatchType UNLOGGED
public static final DefaultBatchType COUNTER
public static DefaultBatchType[] values()
for (DefaultBatchType c : DefaultBatchType.values()) System.out.println(c);
public static DefaultBatchType 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 getProtocolCode()
BatchType
getProtocolCode
in interface BatchType
Copyright © 2017–2024. All rights reserved.