|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.datastax.driver.core.Query com.datastax.driver.core.Statement com.datastax.driver.core.querybuilder.Batch
public class Batch
A built BATCH statement.
Nested Class Summary | |
---|---|
static class |
Batch.Options
The options of a BATCH statement. |
Field Summary | |
---|---|
protected Boolean |
isCounterOp
|
Method Summary | |
---|---|
Batch |
add(Statement statement)
Adds a new statement to this batch. |
protected String |
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. |
Methods inherited from class com.datastax.driver.core.Statement |
---|
toString |
Methods inherited from class com.datastax.driver.core.Query |
---|
disableTracing, enableTracing, getConsistencyLevel, getRetryPolicy, isTracing, setConsistencyLevel, setRetryPolicy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Boolean isCounterOp
Method Detail |
---|
protected String 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()
Statement
getQueryString
in class Statement
protected void setDirty()
protected boolean isCounterOp()
protected void setCounterOp(boolean isCounterOp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |