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.
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,
ThriftClientState clientState,
java.util.List<java.nio.ByteBuffer> variables,
CFMetaData metadata)
|
java.util.List<IMutation> |
prepareRowMutations(java.lang.String keyspace,
ThriftClientState 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,
ThriftClientState 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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,
ThriftClientState clientState,
java.util.List<java.nio.ByteBuffer> variables)
throws InvalidRequestException,
UnauthorizedException
- 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 keyspaceclientState
- current client status
- Returns:
- list of the mutations
- Throws:
InvalidRequestException
- on the wrong request
UnauthorizedException
prepareRowMutations
public java.util.List<IMutation> prepareRowMutations(java.lang.String keyspace,
ThriftClientState clientState,
java.lang.Long timestamp,
java.util.List<java.nio.ByteBuffer> variables)
throws InvalidRequestException,
UnauthorizedException
- 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 keyspaceclientState
- current client statustimestamp
- global timestamp to use for all mutations
- Returns:
- list of the mutations
- Throws:
InvalidRequestException
- on the wrong request
UnauthorizedException
mutationForKey
public RowMutation mutationForKey(java.nio.ByteBuffer key,
java.lang.String keyspace,
java.lang.Long timestamp,
ThriftClientState 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
Copyright © 2012 The Apache Software Foundation