org.apache.cassandra.cql3.statements
Class DeleteStatement
java.lang.Object
org.apache.cassandra.cql3.statements.ParsedStatement
org.apache.cassandra.cql3.statements.CFStatement
org.apache.cassandra.cql3.statements.ModificationStatement
org.apache.cassandra.cql3.statements.DeleteStatement
- All Implemented Interfaces:
- CQLStatement
public class DeleteStatement
- extends ModificationStatement
A DELETE
parsed from a CQL query statement.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DeleteStatement
public DeleteStatement(CFName name,
java.util.List<Selector> columns,
java.util.List<Relation> whereClause,
Attributes attrs)
validateConsistency
protected void validateConsistency(ConsistencyLevel cl)
throws InvalidRequestException
- Specified by:
validateConsistency
in class ModificationStatement
- Throws:
InvalidRequestException
getMutations
public java.util.Collection<RowMutation> getMutations(java.util.List<java.nio.ByteBuffer> variables,
boolean local,
ConsistencyLevel cl,
long now)
throws RequestExecutionException,
RequestValidationException
- Description copied from class:
ModificationStatement
- Convert statement into a list of mutations to apply on the server
- Specified by:
getMutations
in class ModificationStatement
- Parameters:
variables
- value for prepared statement markerslocal
- if true, any requests (for collections) performed by getMutation should be done locally only.cl
- the consistency to use for the potential reads involved in generating the mutations (for lists set/delete operations)now
- the current timestamp in microseconds to use if no timestamp is user provided.
- Returns:
- list of the mutations
- Throws:
InvalidRequestException
- on invalid requests
RequestExecutionException
RequestValidationException
mutationForKey
public RowMutation mutationForKey(CFDefinition cfDef,
java.nio.ByteBuffer key,
ColumnNameBuilder builder,
boolean isRange,
UpdateParameters params,
ColumnGroupMap group)
throws InvalidRequestException
- Throws:
InvalidRequestException
prepare
public ParsedStatement.Prepared prepare(ColumnSpecification[] boundNames)
throws InvalidRequestException
- Specified by:
prepare
in class ModificationStatement
- Throws:
InvalidRequestException
prepare
public ParsedStatement.Prepared prepare()
throws InvalidRequestException
- Specified by:
prepare
in class ParsedStatement
- Throws:
InvalidRequestException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2013 The Apache Software Foundation