public class BatchStatement
extends java.lang.Object
BATCH
statement parsed from a CQL query.Modifier and Type | Field and Description |
---|---|
protected ConsistencyLevel |
consistency |
protected java.util.List<AbstractModification> |
statements |
protected java.lang.Long |
timestamp |
protected int |
timeToLive |
Constructor and Description |
---|
BatchStatement(java.util.List<AbstractModification> statements,
Attributes attrs)
Creates a new BatchStatement from a list of statements and a
Thrift consistency level.
|
Modifier and Type | Method and Description |
---|---|
ConsistencyLevel |
getConsistencyLevel() |
java.util.List<IMutation> |
getMutations(java.lang.String keyspace,
ThriftClientState clientState,
java.util.List<java.nio.ByteBuffer> variables) |
java.util.List<AbstractModification> |
getStatements() |
long |
getTimestamp() |
int |
getTimeToLive() |
boolean |
isSetTimestamp() |
java.lang.String |
toString() |
protected final java.util.List<AbstractModification> statements
protected final ConsistencyLevel consistency
protected final java.lang.Long timestamp
protected final int timeToLive
public BatchStatement(java.util.List<AbstractModification> statements, Attributes attrs)
statements
- a list of UpdateStatementsattrs
- additional attributes for statement (CL, timestamp, timeToLive)public java.util.List<AbstractModification> getStatements()
public ConsistencyLevel getConsistencyLevel()
public int getTimeToLive()
public long getTimestamp()
public java.util.List<IMutation> getMutations(java.lang.String keyspace, ThriftClientState clientState, java.util.List<java.nio.ByteBuffer> variables) throws InvalidRequestException, UnauthorizedException
public boolean isSetTimestamp()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 The Apache Software Foundation