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 |
int |
nowInSeconds |
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,
int nowInSeconds) |
Batch(int flags,
byte type,
List<Object> queriesOrIds,
List<List<ByteBuffer>> values,
int consistency,
int serialConsistency,
long defaultTimestamp,
String keyspace,
int nowInSeconds)
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,
int nowInSeconds) |
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 nowInSeconds
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,
int nowInSeconds)
Batch(byte, List, List, int, int, long, String, int) so that the
flags are computed automatically.Copyright © 2017–2020. All rights reserved.