org.apache.cassandra.db
Class RowMutation

java.lang.Object
  extended by org.apache.cassandra.db.RowMutation

public class RowMutation
extends java.lang.Object


Field Summary
static java.lang.String HINT
           
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 apply()
           
 void applyUnsafe()
           
 RowMutation deepCopy()
           
 void delete(QueryPath path, long timestamp)
           
 java.util.Collection<ColumnFamily> getColumnFamilies()
           
static RowMutation getRowMutation(java.lang.String table, java.nio.ByteBuffer key, java.util.Map<java.lang.String,java.util.List<ColumnOrSuperColumn>> cfmap)
           
static RowMutation getRowMutationFromMutations(java.lang.String keyspace, java.nio.ByteBuffer key, java.util.Map<java.lang.String,java.util.List<Mutation>> cfmap)
           
 DataOutputBuffer getSerializedBuffer()
           
 java.lang.String getTable()
           
 boolean isEmpty()
           
 java.nio.ByteBuffer key()
           
 Message makeRowMutationMessage()
           
 Message makeRowMutationMessage(StorageService.Verb verb)
           
static ICompactSerializer<RowMutation> 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

HINT

public static final java.lang.String HINT
See Also:
Constant Field Values

modifications_

protected java.util.Map<java.lang.Integer,ColumnFamily> modifications_
Constructor Detail

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)
Method Detail

serializer

public static ICompactSerializer<RowMutation> serializer()

getTable

public java.lang.String getTable()

key

public java.nio.ByteBuffer key()

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)

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
Throws:
java.io.IOException

applyUnsafe

public void applyUnsafe()
                 throws java.io.IOException
Throws:
java.io.IOException

makeRowMutationMessage

public Message makeRowMutationMessage()
                               throws java.io.IOException
Throws:
java.io.IOException

makeRowMutationMessage

public Message makeRowMutationMessage(StorageService.Verb verb)
                               throws java.io.IOException
Throws:
java.io.IOException

getRowMutationFromMutations

public static RowMutation getRowMutationFromMutations(java.lang.String keyspace,
                                                      java.nio.ByteBuffer key,
                                                      java.util.Map<java.lang.String,java.util.List<Mutation>> cfmap)

getRowMutation

public static RowMutation getRowMutation(java.lang.String table,
                                         java.nio.ByteBuffer key,
                                         java.util.Map<java.lang.String,java.util.List<ColumnOrSuperColumn>> cfmap)

getSerializedBuffer

public DataOutputBuffer getSerializedBuffer()
                                     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)

deepCopy

public RowMutation deepCopy()


Copyright © 2011 The Apache Software Foundation