public class Batch extends BuiltStatement
| Modifier and Type | Class and Description |
|---|---|
static class |
Batch.Options
The options of a BATCH statement.
|
| Modifier and Type | Method and Description |
|---|---|
Batch |
add(RegularStatement statement)
Adds a new statement to this batch.
|
String |
getKeyspace()
Returns the keyspace of the first statement in this batch.
|
ByteBuffer |
getRoutingKey()
Returns the first non-null routing key of the statements in this batch
or null otherwise.
|
Batch.Options |
using(Using using)
Adds a new options for this BATCH statement.
|
getQueryString, getValues, setForceNoValues, toStringdisableTracing, enableTracing, getConsistencyLevel, getFetchSize, getRetryPolicy, getSerialConsistencyLevel, isTracing, setConsistencyLevel, setFetchSize, setRetryPolicy, setSerialConsistencyLevelpublic Batch add(RegularStatement statement)
statement - the new statement to add.IllegalArgumentException - if counter and non-counter operations
are mixed.public Batch.Options using(Using using)
using - the option to add.public ByteBuffer getRoutingKey()
getRoutingKey in class BuiltStatementpublic String getKeyspace()
getKeyspace in class BuiltStatementCopyright © 2014. All rights reserved.