org.apache.cassandra.cql
Class BatchStatement
java.lang.Object
org.apache.cassandra.cql.BatchStatement
public class BatchStatement
- extends java.lang.Object
A BATCH
statement parsed from a CQL query.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
statements
protected final java.util.List<AbstractModification> statements
consistency
protected final org.apache.cassandra.thrift.ConsistencyLevel consistency
timestamp
protected final java.lang.Long timestamp
timeToLive
protected final int timeToLive
BatchStatement
public BatchStatement(java.util.List<AbstractModification> statements,
Attributes attrs)
- Creates a new BatchStatement from a list of statements and a
Thrift consistency level.
- Parameters:
statements
- a list of UpdateStatementsattrs
- additional attributes for statement (CL, timestamp, timeToLive)
getStatements
public java.util.List<AbstractModification> getStatements()
getConsistencyLevel
public org.apache.cassandra.thrift.ConsistencyLevel getConsistencyLevel()
getTimeToLive
public int getTimeToLive()
getMutations
public java.util.List<IMutation> getMutations(java.lang.String keyspace,
ClientState clientState)
throws org.apache.cassandra.thrift.InvalidRequestException
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
isSetTimestamp
public boolean isSetTimestamp()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2011 The Apache Software Foundation