Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cassandra.cql
Class DeleteStatement

    java.lang.Object
      org.apache.cassandra.cql.AbstractModification
          org.apache.cassandra.cql.DeleteStatement

    public class DeleteStatement

extends AbstractModification

A `DELETE` parsed from a CQL query statement.

Field Summary

Fields inherited from class org.apache.cassandra.cql.AbstractModification
`cLevel, columnFamily, defaultConsistency, keyName, keyspace, timestamp, timeToLive`

Constructor Summary
`DeleteStatement(java.util.List<Term> columns, java.lang.String keyspace, java.lang.String columnFamily, java.lang.String keyName, java.util.List<Term> keys, Attributes attrs)`

Method Summary
`java.util.List<Term>` | `getColumns()`
`java.util.List<Term>` | `getKeys()`
`RowMutation` | `mutationForKey(java.nio.ByteBuffer key, java.lang.String keyspace, java.lang.Long timestamp, ClientState clientState, java.util.List<java.nio.ByteBuffer> variables, CFMetaData metadata)`
`java.util.List<IMutation>` | `prepareRowMutations(java.lang.String keyspace, ClientState clientState, java.util.List<java.nio.ByteBuffer> variables)` Convert statement into a list of mutations to apply on the server
`java.util.List<IMutation>` | `prepareRowMutations(java.lang.String keyspace, ClientState clientState, java.lang.Long timestamp, java.util.List<java.nio.ByteBuffer> variables)` Convert statement into a list of mutations to apply on the server
`java.lang.String` | `toString()`

Methods inherited from class org.apache.cassandra.cql.AbstractModification
`getColumnFamily, getConsistencyLevel, getKeyspace, getTimestamp, getTimeToLive, isSetConsistencyLevel, isSetTimestamp`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### DeleteStatement

    public DeleteStatement(java.util.List<Term> columns,
                           java.lang.String keyspace,
                           java.lang.String columnFamily,
                           java.lang.String keyName,
                           java.util.List<Term> keys,
                           Attributes attrs)

Method Detail

### getColumns

    public java.util.List<Term> getColumns()

### getKeys

    public java.util.List<Term> getKeys()

### prepareRowMutations

    public java.util.List<IMutation> prepareRowMutations(java.lang.String keyspace,
                                                         ClientState clientState,
                                                         java.util.List<java.nio.ByteBuffer> variables)
                                                  throws InvalidRequestException

  Description copied from class: `AbstractModification`
  Convert statement into a list of mutations to apply on the server

  Specified by:
    `prepareRowMutations` in class `AbstractModification`
  Parameters:
    `keyspace` - The working keyspace
    `clientState` - current client status
  Returns:
    list of the mutations
  Throws:
    `InvalidRequestException` - on the wrong request

### prepareRowMutations

    public java.util.List<IMutation> prepareRowMutations(java.lang.String keyspace,
                                                         ClientState clientState,
                                                         java.lang.Long timestamp,
                                                         java.util.List<java.nio.ByteBuffer> variables)
                                                  throws InvalidRequestException

  Description copied from class: `AbstractModification`
  Convert statement into a list of mutations to apply on the server

  Specified by:
    `prepareRowMutations` in class `AbstractModification`
  Parameters:
    `keyspace` - The working keyspace
    `clientState` - current client status
    `timestamp` - global timestamp to use for all mutations
  Returns:
    list of the mutations
  Throws:
    `InvalidRequestException` - on the wrong request

### mutationForKey

    public RowMutation mutationForKey(java.nio.ByteBuffer key,
                                      java.lang.String keyspace,
                                      java.lang.Long timestamp,
                                      ClientState clientState,
                                      java.util.List<java.nio.ByteBuffer> variables,
                                      CFMetaData metadata)
                               throws InvalidRequestException

  Throws:
    `InvalidRequestException`

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2013 The Apache Software Foundation