public class DeleteStatement extends ModificationStatement
DELETE
parsed from a CQL query statement.ModificationStatement.Type
ParsedStatement.Prepared
type
cfName
Constructor and Description |
---|
DeleteStatement(CFName name,
java.util.List<Operation.RawDeletion> deletions,
java.util.List<Relation> whereClause,
Attributes attrs) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<RowMutation> |
getMutations(java.util.List<java.nio.ByteBuffer> variables,
boolean local,
ConsistencyLevel cl,
long now)
Convert statement into a list of mutations to apply on the server
|
long |
measureForPreparedCache(org.github.jamm.MemoryMeter meter) |
RowMutation |
mutationForKey(CFDefinition cfDef,
java.nio.ByteBuffer key,
ColumnNameBuilder builder,
boolean isRange,
UpdateParameters params) |
ParsedStatement.Prepared |
prepare() |
ParsedStatement.Prepared |
prepare(ColumnSpecification[] boundNames) |
java.lang.String |
toString() |
protected void |
validateConsistency(ConsistencyLevel cl) |
checkAccess, execute, executeInternal, getTimestamp, getTimeToLive, isSetTimestamp, readRows, setTimestamp, validate
columnFamily, keyspace, prepareKeyspace
getBoundsTerms, setBoundTerms
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBoundsTerms
public DeleteStatement(CFName name, java.util.List<Operation.RawDeletion> deletions, java.util.List<Relation> whereClause, Attributes attrs)
public long measureForPreparedCache(org.github.jamm.MemoryMeter meter)
protected void validateConsistency(ConsistencyLevel cl) throws InvalidRequestException
validateConsistency
in class ModificationStatement
InvalidRequestException
public java.util.Collection<RowMutation> getMutations(java.util.List<java.nio.ByteBuffer> variables, boolean local, ConsistencyLevel cl, long now) throws RequestExecutionException, RequestValidationException
ModificationStatement
getMutations
in class ModificationStatement
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.InvalidRequestException
- on invalid requestsRequestExecutionException
RequestValidationException
public RowMutation mutationForKey(CFDefinition cfDef, java.nio.ByteBuffer key, ColumnNameBuilder builder, boolean isRange, UpdateParameters params) throws InvalidRequestException
InvalidRequestException
public ParsedStatement.Prepared prepare(ColumnSpecification[] boundNames) throws InvalidRequestException
prepare
in class ModificationStatement
InvalidRequestException
public ParsedStatement.Prepared prepare() throws InvalidRequestException
prepare
in class ParsedStatement
InvalidRequestException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013 The Apache Software Foundation