org.apache.cassandra.db
Class EchoedRow

java.lang.Object
  extended by org.apache.cassandra.db.compaction.AbstractCompactedRow
      extended by org.apache.cassandra.db.EchoedRow

public class EchoedRow
extends AbstractCompactedRow

A CompactedRow implementation that just echos the original row bytes without deserializing. Currently only used by cleanup.


Field Summary
 
Fields inherited from class org.apache.cassandra.db.compaction.AbstractCompactedRow
key
 
Constructor Summary
EchoedRow(SSTableIdentityIterator row)
           
 
Method Summary
 int columnCount()
           
 boolean isEmpty()
           
 void update(java.security.MessageDigest digest)
          update @param digest with the data bytes of the row (not including row key or row size)
 void write(java.io.DataOutput out)
          write the row (size + column index + filter + column data, but NOT row key) to @param out
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EchoedRow

public EchoedRow(SSTableIdentityIterator row)
Method Detail

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Description copied from class: AbstractCompactedRow
write the row (size + column index + filter + column data, but NOT row key) to @param out

Specified by:
write in class AbstractCompactedRow
Throws:
java.io.IOException

update

public void update(java.security.MessageDigest digest)
Description copied from class: AbstractCompactedRow
update @param digest with the data bytes of the row (not including row key or row size)

Specified by:
update in class AbstractCompactedRow

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class AbstractCompactedRow
Returns:
true if there are no columns in the row AND there are no row-level tombstones to be preserved

columnCount

public int columnCount()
Specified by:
columnCount in class AbstractCompactedRow
Returns:
the number of columns in the row


Copyright © 2011 The Apache Software Foundation