org.apache.cassandra.db
Class RowMutation
java.lang.Object
org.apache.cassandra.db.RowMutation
- All Implemented Interfaces:
- IMutation, MessageProducer
public class RowMutation
- extends java.lang.Object
- implements IMutation, MessageProducer
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,
org.apache.cassandra.thrift.ColumnOrSuperColumn cosc)
|
void |
addCounter(QueryPath path,
long value)
|
void |
apply()
|
void |
applyUnsafe()
|
void |
delete(QueryPath path,
long timestamp)
|
void |
deleteColumnOrSuperColumn(java.lang.String cfName,
org.apache.cassandra.thrift.Deletion del)
|
java.util.Collection<ColumnFamily> |
getColumnFamilies()
|
java.util.Collection<java.lang.Integer> |
getColumnFamilyIds()
|
Message |
getMessage(java.lang.Integer version)
|
byte[] |
getSerializedBuffer(int version)
|
java.lang.String |
getTable()
|
boolean |
isEmpty()
|
java.nio.ByteBuffer |
key()
|
RowMutation |
localCopy()
|
Message |
makeRowMutationMessage(StorageService.Verb verb,
int version)
|
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 |
HINT
public static final java.lang.String HINT
- See Also:
- Constant Field Values
FORWARD_HEADER
public static final java.lang.String FORWARD_HEADER
- See Also:
- Constant Field Values
modifications_
protected java.util.Map<java.lang.Integer,ColumnFamily> modifications_
RowMutation
public RowMutation(java.lang.String table,
java.nio.ByteBuffer key)
RowMutation
public RowMutation(java.lang.String table,
Row row)
RowMutation
protected RowMutation(java.lang.String table,
java.nio.ByteBuffer key,
java.util.Map<java.lang.Integer,ColumnFamily> modifications)
serializer
public static RowMutation.RowMutationSerializer serializer()
getTable
public java.lang.String getTable()
- Specified by:
getTable
in interface IMutation
getColumnFamilyIds
public java.util.Collection<java.lang.Integer> getColumnFamilyIds()
- Specified by:
getColumnFamilyIds
in interface IMutation
key
public java.nio.ByteBuffer key()
- Specified by:
key
in interface IMutation
getColumnFamilies
public java.util.Collection<ColumnFamily> getColumnFamilies()
add
public void add(ColumnFamily columnFamily)
isEmpty
public boolean isEmpty()
add
public void add(QueryPath path,
java.nio.ByteBuffer value,
long timestamp,
int timeToLive)
addCounter
public void addCounter(QueryPath path,
long value)
add
public void add(QueryPath path,
java.nio.ByteBuffer value,
long timestamp)
delete
public void delete(QueryPath path,
long timestamp)
apply
public void apply()
throws java.io.IOException
- Specified by:
apply
in interface IMutation
- Throws:
java.io.IOException
applyUnsafe
public void applyUnsafe()
throws java.io.IOException
- Throws:
java.io.IOException
getMessage
public Message getMessage(java.lang.Integer version)
throws java.io.IOException
- Specified by:
getMessage
in interface MessageProducer
- Throws:
java.io.IOException
makeRowMutationMessage
public Message makeRowMutationMessage(StorageService.Verb verb,
int version)
throws java.io.IOException
- Throws:
java.io.IOException
getSerializedBuffer
public byte[] getSerializedBuffer(int version)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toString
public java.lang.String toString(boolean shallow)
- Specified by:
toString
in interface IMutation
addColumnOrSuperColumn
public void addColumnOrSuperColumn(java.lang.String cfName,
org.apache.cassandra.thrift.ColumnOrSuperColumn cosc)
deleteColumnOrSuperColumn
public void deleteColumnOrSuperColumn(java.lang.String cfName,
org.apache.cassandra.thrift.Deletion del)
localCopy
public RowMutation localCopy()
Copyright © 2011 The Apache Software Foundation