public class Batch extends Statement
| Modifier and Type | Class and Description |
|---|---|
static class |
Batch.Options
The options of a BATCH statement.
|
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
isCounterOp |
| Modifier and Type | Method and Description |
|---|---|
Batch |
add(Statement statement)
Adds a new statement to this batch.
|
protected StringBuilder |
buildQueryString() |
String |
getQueryString()
Returns the query string for this statement.
|
ByteBuffer |
getRoutingKey()
Returns the first non-null routing key of the statements in this batch
or null otherwise.
|
protected boolean |
isCounterOp() |
protected void |
setCounterOp(boolean isCounterOp) |
protected void |
setDirty() |
Batch.Options |
using(Using using)
Adds a new options for this BATCH statement.
|
disableTracing, enableTracing, getConsistencyLevel, getRetryPolicy, isTracing, setConsistencyLevel, setRetryPolicyprotected Boolean isCounterOp
protected StringBuilder buildQueryString()
public Batch add(Statement 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()
public String getQueryString()
StatementgetQueryString in class Statementprotected void setDirty()
protected boolean isCounterOp()
protected void setCounterOp(boolean isCounterOp)
Copyright © 2014. All Rights Reserved.