public class DeleteStatement extends AbstractModification
DELETE parsed from a CQL query statement.cLevel, columnFamily, defaultConsistency, keyName, keyspace, timestamp, timeToLive| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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() |
getColumnFamily, getConsistencyLevel, getKeyName, getKeyspace, getTimestamp, getTimeToLive, isSetConsistencyLevel, isSetTimestamppublic 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)
public java.util.List<Term> getColumns()
public java.util.List<Term> getKeys()
public java.util.List<IMutation> prepareRowMutations(java.lang.String keyspace, ThriftClientState clientState, java.util.List<java.nio.ByteBuffer> variables) throws InvalidRequestException, UnauthorizedException
AbstractModificationprepareRowMutations in class AbstractModificationkeyspace - The working keyspaceclientState - current client statusInvalidRequestException - on the wrong requestUnauthorizedExceptionpublic 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
AbstractModificationprepareRowMutations in class AbstractModificationkeyspace - The working keyspaceclientState - current client statustimestamp - global timestamp to use for all mutationsInvalidRequestException - on the wrong requestUnauthorizedExceptionpublic 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
InvalidRequestExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 The Apache Software Foundation