public class Batch extends Message
| Modifier and Type | Class and Description |
|---|---|
static class |
Batch.Codec |
| Modifier and Type | Field and Description |
|---|---|
int |
consistency |
long |
defaultTimestamp |
int |
flags |
String |
keyspace |
List<Object> |
queriesOrIds
String or byte[]
|
int |
serialConsistency |
byte |
type |
List<List<ByteBuffer>> |
values |
isResponse, opcode| Constructor and Description |
|---|
Batch(byte type,
List<Object> queriesOrIds,
List<List<ByteBuffer>> values,
int consistency,
int serialConsistency,
long defaultTimestamp,
String keyspace) |
Batch(int flags,
byte type,
List<Object> queriesOrIds,
List<List<ByteBuffer>> values,
int consistency,
int serialConsistency,
long defaultTimestamp,
String keyspace)
This constructor should only be used in message codecs.
|
| Modifier and Type | Method and Description |
|---|---|
protected static int |
computeFlags(int serialConsistency,
long defaultTimestamp,
String keyspace) |
String |
toString() |
public final byte type
ProtocolConstants.BatchTypepublic final List<List<ByteBuffer>> values
public final int consistency
public final int serialConsistency
public final long defaultTimestamp
public final String keyspace
public final int flags
public Batch(int flags,
byte type,
List<Object> queriesOrIds,
List<List<ByteBuffer>> values,
int consistency,
int serialConsistency,
long defaultTimestamp,
String keyspace)
Batch(byte, List, List, int, int, long, String) so that the flags are
computed automatically.Copyright © 2017–2019. All rights reserved.