public abstract class AbstractModification
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ConsistencyLevel |
cLevel |
protected java.lang.String |
columnFamily |
static ConsistencyLevel |
defaultConsistency |
protected java.lang.String |
keyName |
protected java.lang.String |
keyspace |
protected java.lang.Long |
timestamp |
protected int |
timeToLive |
Constructor and Description |
---|
AbstractModification(java.lang.String keyspace,
java.lang.String columnFamily,
java.lang.String keyAlias,
Attributes attrs) |
AbstractModification(java.lang.String keyspace,
java.lang.String columnFamily,
java.lang.String keyAlias,
ConsistencyLevel cLevel,
java.lang.Long timestamp,
int timeToLive) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getColumnFamily() |
ConsistencyLevel |
getConsistencyLevel() |
java.lang.String |
getKeyspace() |
long |
getTimestamp(ThriftClientState clientState) |
int |
getTimeToLive() |
boolean |
isSetConsistencyLevel()
True if an explicit consistency level was parsed from the statement.
|
boolean |
isSetTimestamp() |
abstract 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
|
abstract 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
|
public static final ConsistencyLevel defaultConsistency
protected final java.lang.String keyspace
protected final java.lang.String columnFamily
protected final ConsistencyLevel cLevel
protected final java.lang.Long timestamp
protected final int timeToLive
protected final java.lang.String keyName
public AbstractModification(java.lang.String keyspace, java.lang.String columnFamily, java.lang.String keyAlias, Attributes attrs)
public AbstractModification(java.lang.String keyspace, java.lang.String columnFamily, java.lang.String keyAlias, ConsistencyLevel cLevel, java.lang.Long timestamp, int timeToLive)
public java.lang.String getKeyspace()
public java.lang.String getColumnFamily()
public ConsistencyLevel getConsistencyLevel()
public boolean isSetConsistencyLevel()
public long getTimestamp(ThriftClientState clientState)
public boolean isSetTimestamp()
public int getTimeToLive()
public abstract java.util.List<IMutation> prepareRowMutations(java.lang.String keyspace, ThriftClientState clientState, java.util.List<java.nio.ByteBuffer> variables) throws InvalidRequestException, UnauthorizedException
keyspace
- The working keyspaceclientState
- current client statusInvalidRequestException
- on the wrong requestUnauthorizedException
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
keyspace
- The working keyspaceclientState
- current client statustimestamp
- global timestamp to use for all mutationsInvalidRequestException
- on the wrong requestUnauthorizedException
Copyright © 2013 The Apache Software Foundation