public interface CachedPartition extends Partition, IRowCacheEntry
ArrayBackedPartition,
we keep this interface mainly 1) to make it clear what we need from partition in the cache
(that we don't otherwise) and 2) because ArrayBackedPartition is used for other
purpose (than caching) and hence using CachedPartition when we talk about caching is
clearer.| Modifier and Type | Field and Description |
|---|---|
static ISerializer<CachedPartition> |
cacheSerializer |
| Modifier and Type | Method and Description |
|---|---|
int |
cachedLiveRows()
The number of rows that were live at the time the partition was cached.
|
Row |
lastRow()
The last row in this cached partition (in order words, the row with the
biggest clustering that the partition contains).
|
int |
nonExpiringLiveCells()
The number of cells in this cached partition that are neither tombstone nor expiring.
|
int |
nonTombstoneCellCount()
The number of
cell objects that are not tombstone in this cached partition. |
int |
rowCount()
The number of
Row objects in this cached partition. |
int |
rowsWithNonExpiringCells()
The number of rows in this cached partition that have at least one non-expiring
non-deleted cell.
|
columns, getRow, isEmpty, metadata, partitionKey, partitionLevelDeletion, searchIterator, stats, unfilteredIterator, unfilteredIteratorstatic final ISerializer<CachedPartition> cacheSerializer
int rowCount()
Row objects in this cached partition.
Please note that this is not the number of live rows since
some of the row may only contains deleted (or expired) information.int cachedLiveRows()
ColumnFamilyStore#isFilterFullyCoveredBy to see why we need this.int rowsWithNonExpiringCells()
DataLimits#hasEnoughLiveData as an optimization.Row lastRow()
null if the partition is empty.int nonTombstoneCellCount()
cell objects that are not tombstone in this cached partition.
Please note that this is not the number of live cells since
some of the cells might be expired.int nonExpiringLiveCells()
DataLimits#hasEnoughLiveData as an optimization.Copyright © 2015 The Apache Software Foundation