org.apache.cassandra.cql
Class AbstractModification
java.lang.Object
org.apache.cassandra.cql.AbstractModification
- Direct Known Subclasses:
- DeleteStatement, UpdateStatement
public abstract class AbstractModification
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultConsistency
public static final ConsistencyLevel defaultConsistency
keyspace
protected final java.lang.String keyspace
columnFamily
protected final java.lang.String columnFamily
cLevel
protected final ConsistencyLevel cLevel
timestamp
protected final java.lang.Long timestamp
timeToLive
protected final int timeToLive
keyName
protected final java.lang.String keyName
AbstractModification
public AbstractModification(java.lang.String keyspace,
java.lang.String columnFamily,
java.lang.String keyAlias,
Attributes attrs)
AbstractModification
public AbstractModification(java.lang.String keyspace,
java.lang.String columnFamily,
java.lang.String keyAlias,
ConsistencyLevel cLevel,
java.lang.Long timestamp,
int timeToLive)
getKeyspace
public java.lang.String getKeyspace()
getColumnFamily
public java.lang.String getColumnFamily()
getConsistencyLevel
public ConsistencyLevel getConsistencyLevel()
isSetConsistencyLevel
public boolean isSetConsistencyLevel()
- True if an explicit consistency level was parsed from the statement.
- Returns:
- true if a consistency was parsed, false otherwise.
getTimestamp
public long getTimestamp(ThriftClientState clientState)
isSetTimestamp
public boolean isSetTimestamp()
getTimeToLive
public int getTimeToLive()
prepareRowMutations
public abstract java.util.List<IMutation> prepareRowMutations(java.lang.String keyspace,
ThriftClientState clientState,
java.util.List<java.nio.ByteBuffer> variables)
throws InvalidRequestException,
UnauthorizedException
- Convert statement into a list of mutations to apply on the server
- Parameters:
keyspace
- The working keyspaceclientState
- current client status
- Returns:
- list of the mutations
- Throws:
InvalidRequestException
- on the wrong request
UnauthorizedException
prepareRowMutations
public abstract 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
- Convert statement into a list of mutations to apply on the server
- 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
Copyright © 2012 The Apache Software Foundation