Package org.apache.cassandra.io.sstable
Class AbstractRowIndexEntry
- java.lang.Object
-
- org.apache.cassandra.io.sstable.AbstractRowIndexEntry
-
- All Implemented Interfaces:
IMeasurableMemory
- Direct Known Subclasses:
RowIndexEntry
public abstract class AbstractRowIndexEntry extends java.lang.Object implements IMeasurableMemory
The base RowIndexEntry is not stored on disk, only specifies a position in the data file
-
-
Field Summary
Fields Modifier and Type Field Description long
position
-
Constructor Summary
Constructors Constructor Description AbstractRowIndexEntry(long position)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
blockCount()
DeletionTime
deletionTime()
long
getPosition()
Row position in a data fileabstract SSTableFormat<?,?>
getSSTableFormat()
boolean
isIndexed()
abstract void
serializeForCache(DataOutputPlus out)
Serialize this entry for key cache-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cache.IMeasurableMemory
unsharedHeapSize
-
-
-
-
Method Detail
-
getPosition
public long getPosition()
Row position in a data file
-
isIndexed
public boolean isIndexed()
- Returns:
- true if this index entry contains the row-level tombstone and column summary. Otherwise, caller should fetch these from the row header.
-
deletionTime
public DeletionTime deletionTime()
-
blockCount
public int blockCount()
-
getSSTableFormat
public abstract SSTableFormat<?,?> getSSTableFormat()
-
serializeForCache
public abstract void serializeForCache(DataOutputPlus out) throws java.io.IOException
Serialize this entry for key cache- Parameters:
out
- the output stream for serialized entry- Throws:
java.io.IOException
-
-