org.apache.cassandra.cql
Class BatchUpdateStatement

java.lang.Object
  extended by org.apache.cassandra.cql.BatchUpdateStatement

public class BatchUpdateStatement
extends java.lang.Object

A BATCH UPDATE statement parsed from a CQL query.


Constructor Summary
BatchUpdateStatement(java.util.List<UpdateStatement> updates, org.apache.cassandra.thrift.ConsistencyLevel consistency)
          Creates a new BatchUpdateStatement from a list of UpdateStatements and a Thrift consistency level.
 
Method Summary
 org.apache.cassandra.thrift.ConsistencyLevel getConsistencyLevel()
           
 java.util.List<UpdateStatement> getUpdates()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BatchUpdateStatement

public BatchUpdateStatement(java.util.List<UpdateStatement> updates,
                            org.apache.cassandra.thrift.ConsistencyLevel consistency)
Creates a new BatchUpdateStatement from a list of UpdateStatements and a Thrift consistency level.

Parameters:
updates - a list of UpdateStatements
consistency - Thrift consistency level enum
Method Detail

getConsistencyLevel

public org.apache.cassandra.thrift.ConsistencyLevel getConsistencyLevel()

getUpdates

public java.util.List<UpdateStatement> getUpdates()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 The Apache Software Foundation