org.apache.cassandra.db
Class RowMutation

java.lang.Object
  extended by org.apache.cassandra.db.RowMutation
All Implemented Interfaces:
java.io.Serializable

public class RowMutation
extends java.lang.Object
implements java.io.Serializable

Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )

See Also:
Serialized Form

Field Summary
static java.lang.String HINT
           
protected  java.util.Map<java.lang.String,ColumnFamily> modifications_
           
 
Constructor Summary
  RowMutation(java.lang.String table, Row row)
           
  RowMutation(java.lang.String table, java.lang.String key)
           
protected RowMutation(java.lang.String table, java.lang.String key, java.util.Map<java.lang.String,ColumnFamily> modifications)
           
 
Method Summary
 void add(ColumnFamily columnFamily)
           
 void add(java.lang.String cf, byte[] value, long timestamp)
           
 void apply()
           
 java.util.Set<java.lang.String> columnFamilyNames()
           
 void delete(java.lang.String columnFamilyColumn, long timestamp)
           
static java.lang.String[] getColumnAndColumnFamily(java.lang.String cf)
           
static RowMutation getRowMutation(org.apache.cassandra.service.batch_mutation_super_t batchMutationSuper)
           
static RowMutation getRowMutation(org.apache.cassandra.service.batch_mutation_t batchMutation)
           
 java.lang.String key()
           
 Message makeRowMutationMessage()
           
 Message makeRowMutationMessage(java.lang.String verbHandlerName)
           
 java.lang.String table()
           
 java.lang.String toString()
           
 
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.String,ColumnFamily> modifications_
Constructor Detail

RowMutation

public RowMutation(java.lang.String table,
                   java.lang.String key)

RowMutation

public RowMutation(java.lang.String table,
                   Row row)

RowMutation

protected RowMutation(java.lang.String table,
                      java.lang.String key,
                      java.util.Map<java.lang.String,ColumnFamily> modifications)
Method Detail

getColumnAndColumnFamily

public static java.lang.String[] getColumnAndColumnFamily(java.lang.String cf)

table

public java.lang.String table()

key

public java.lang.String key()

columnFamilyNames

public java.util.Set<java.lang.String> columnFamilyNames()

add

public void add(ColumnFamily columnFamily)

add

public void add(java.lang.String cf,
                byte[] value,
                long timestamp)

delete

public void delete(java.lang.String columnFamilyColumn,
                   long timestamp)

apply

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

makeRowMutationMessage

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

makeRowMutationMessage

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

getRowMutation

public static RowMutation getRowMutation(org.apache.cassandra.service.batch_mutation_t batchMutation)

getRowMutation

public static RowMutation getRowMutation(org.apache.cassandra.service.batch_mutation_super_t batchMutationSuper)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 The Apache Software Foundation