Modifier and Type | Class and Description |
---|---|
static class |
RowMutation.RowMutationSerializer |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FORWARD_FROM |
static java.lang.String |
FORWARD_TO |
static RowMutation.RowMutationSerializer |
serializer |
Modifier | Constructor and Description |
---|---|
|
RowMutation(java.lang.String table,
java.nio.ByteBuffer key) |
|
RowMutation(java.lang.String keyspaceName,
java.nio.ByteBuffer key,
ColumnFamily cf) |
protected |
RowMutation(java.lang.String table,
java.nio.ByteBuffer key,
java.util.Map<java.util.UUID,ColumnFamily> modifications) |
|
RowMutation(java.lang.String table,
Row row) |
Modifier and Type | Method and Description |
---|---|
void |
add(ColumnFamily columnFamily) |
void |
add(QueryPath path,
java.nio.ByteBuffer value,
long timestamp) |
void |
add(QueryPath path,
java.nio.ByteBuffer value,
long timestamp,
int timeToLive) |
void |
addAll(IMutation m) |
void |
addColumnOrSuperColumn(java.lang.String cfName,
org.apache.cassandra.thrift.ColumnOrSuperColumn cosc) |
void |
addCounter(QueryPath path,
long value) |
ColumnFamily |
addOrGet(CFMetaData cfm) |
ColumnFamily |
addOrGet(java.lang.String cfName) |
void |
apply() |
void |
applyUnsafe() |
int |
calculateHintTTL() |
MessageOut<RowMutation> |
createMessage() |
MessageOut<RowMutation> |
createMessage(MessagingService.Verb verb) |
void |
delete(QueryPath path,
long timestamp) |
void |
deleteColumnOrSuperColumn(java.lang.String cfName,
org.apache.cassandra.thrift.Deletion del) |
java.util.Collection<ColumnFamily> |
getColumnFamilies() |
ColumnFamily |
getColumnFamily(java.util.UUID cfId) |
java.util.Collection<java.util.UUID> |
getColumnFamilyIds() |
java.lang.String |
getTable() |
boolean |
isEmpty() |
java.nio.ByteBuffer |
key() |
RowMutation |
toHint(int ttl,
java.util.UUID targetId)
Returns mutation representing a Hint to be sent to
targetId
as soon as it becomes available. |
java.lang.String |
toString() |
java.lang.String |
toString(boolean shallow) |
RowMutation |
without(java.util.UUID cfId) |
public static final RowMutation.RowMutationSerializer serializer
public static final java.lang.String FORWARD_TO
public static final java.lang.String FORWARD_FROM
public RowMutation(java.lang.String table, java.nio.ByteBuffer key)
public RowMutation(java.lang.String keyspaceName, java.nio.ByteBuffer key, ColumnFamily cf)
public RowMutation(java.lang.String table, Row row)
protected RowMutation(java.lang.String table, java.nio.ByteBuffer key, java.util.Map<java.util.UUID,ColumnFamily> modifications)
public java.util.Collection<java.util.UUID> getColumnFamilyIds()
getColumnFamilyIds
in interface IMutation
public java.util.Collection<ColumnFamily> getColumnFamilies()
public ColumnFamily getColumnFamily(java.util.UUID cfId)
public RowMutation toHint(int ttl, java.util.UUID targetId) throws java.io.IOException
targetId
as soon as it becomes available. See HintedHandoffManager for more details.java.io.IOException
public int calculateHintTTL()
public void add(ColumnFamily columnFamily)
public ColumnFamily addOrGet(java.lang.String cfName)
public ColumnFamily addOrGet(CFMetaData cfm)
public boolean isEmpty()
public void add(QueryPath path, java.nio.ByteBuffer value, long timestamp, int timeToLive)
public void addCounter(QueryPath path, long value)
public void add(QueryPath path, java.nio.ByteBuffer value, long timestamp)
public void delete(QueryPath path, long timestamp)
public void applyUnsafe()
public MessageOut<RowMutation> createMessage()
public MessageOut<RowMutation> createMessage(MessagingService.Verb verb)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean shallow)
public void addColumnOrSuperColumn(java.lang.String cfName, org.apache.cassandra.thrift.ColumnOrSuperColumn cosc)
public void deleteColumnOrSuperColumn(java.lang.String cfName, org.apache.cassandra.thrift.Deletion del)
public RowMutation without(java.util.UUID cfId)
Copyright © 2013 The Apache Software Foundation