|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.db.RowMutation
public class RowMutation
| Nested Class Summary | |
|---|---|
static class |
RowMutation.RowMutationSerializer
|
| Field Summary | |
|---|---|
static java.lang.String |
FORWARD_HEADER
|
protected java.util.Map<java.lang.Integer,ColumnFamily> |
modifications_
|
| Constructor Summary | |
|---|---|
|
RowMutation(java.lang.String table,
java.nio.ByteBuffer key)
|
protected |
RowMutation(java.lang.String table,
java.nio.ByteBuffer key,
java.util.Map<java.lang.Integer,ColumnFamily> modifications)
|
|
RowMutation(java.lang.String table,
Row row)
|
| Method Summary | |
|---|---|
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 |
addColumnOrSuperColumn(java.lang.String cfName,
ColumnOrSuperColumn cosc)
|
void |
addCounter(QueryPath path,
long value)
|
void |
apply()
|
void |
applyUnsafe()
|
void |
delete(QueryPath path,
long timestamp)
|
void |
deleteColumnOrSuperColumn(java.lang.String cfName,
Deletion del)
|
static RowMutation |
fromBytes(byte[] raw,
int version)
|
java.util.Collection<ColumnFamily> |
getColumnFamilies()
|
ColumnFamily |
getColumnFamily(java.lang.Integer cfId)
|
java.util.Collection<java.lang.Integer> |
getColumnFamilyIds()
|
Message |
getMessage(java.lang.Integer version)
|
Message |
getMessage(StorageService.Verb verb,
int version)
|
byte[] |
getSerializedBuffer(int version)
|
java.lang.String |
getTable()
|
static RowMutation |
hintFor(RowMutation mutation,
java.nio.ByteBuffer token)
Returns mutation representing a Hints to be sent to address
as soon as it becomes available. |
boolean |
isEmpty()
|
java.nio.ByteBuffer |
key()
|
static RowMutation.RowMutationSerializer |
serializer()
|
java.lang.String |
toString()
|
java.lang.String |
toString(boolean shallow)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FORWARD_HEADER
protected java.util.Map<java.lang.Integer,ColumnFamily> modifications_
| Constructor Detail |
|---|
public RowMutation(java.lang.String table,
java.nio.ByteBuffer key)
public RowMutation(java.lang.String table,
Row row)
protected RowMutation(java.lang.String table,
java.nio.ByteBuffer key,
java.util.Map<java.lang.Integer,ColumnFamily> modifications)
| Method Detail |
|---|
public static RowMutation.RowMutationSerializer serializer()
public java.lang.String getTable()
getTable in interface IMutationpublic java.util.Collection<java.lang.Integer> getColumnFamilyIds()
getColumnFamilyIds in interface IMutationpublic java.nio.ByteBuffer key()
key in interface IMutationpublic java.util.Collection<ColumnFamily> getColumnFamilies()
public ColumnFamily getColumnFamily(java.lang.Integer cfId)
public static RowMutation hintFor(RowMutation mutation,
java.nio.ByteBuffer token)
throws java.io.IOException
address
as soon as it becomes available.
The format is the following:
HintsColumnFamily: { // cf
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||