org.apache.cassandra.io
Class AbstractCompactedRow
java.lang.Object
org.apache.cassandra.io.AbstractCompactedRow
- Direct Known Subclasses:
- LazilyCompactedRow, PrecompactedRow
public abstract class AbstractCompactedRow
- extends java.lang.Object
a CompactedRow is an object that takes a bunch of rows (keys + columnfamilies)
and can write a compacted version of those rows to an output stream. It does
NOT necessarily require creating a merged CF object in memory.
Method Summary |
abstract int |
columnCount()
|
abstract boolean |
isEmpty()
|
abstract void |
update(java.security.MessageDigest digest)
update @param digest with the data bytes of the row (not including row key or row size) |
abstract 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 |
key
public final DecoratedKey key
AbstractCompactedRow
public AbstractCompactedRow(DecoratedKey key)
write
public abstract void write(java.io.DataOutput out)
throws java.io.IOException
- write the row (size + column index + filter + column data, but NOT row key) to @param out
- Throws:
java.io.IOException
update
public abstract void update(java.security.MessageDigest digest)
- update @param digest with the data bytes of the row (not including row key or row size)
isEmpty
public abstract boolean isEmpty()
- Returns:
- true if there are no columns in the row AND there are no row-level tombstones to be preserved
columnCount
public abstract int columnCount()
- Returns:
- the number of columns in the row
Copyright © 2011 The Apache Software Foundation