public interface CachedPartition extends Partition, IRowCacheEntry
CachedBTreePartition
,
we keep this interface mainly to make it clear what we need from partition in the cache
(that we don't otherwise)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 |
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, stats, unfilteredIterator, unfilteredIterator, unfilteredIterator
static 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(org.apache.cassandra.db.filter.ClusteringIndexFilter, org.apache.cassandra.db.filter.DataLimits, org.apache.cassandra.db.partitions.CachedPartition, int, boolean)
to see why we need this.int rowsWithNonExpiringCells()
DataLimits.hasEnoughLiveData(org.apache.cassandra.db.partitions.CachedPartition, int, boolean, boolean)
as an optimization.Row lastRow()
null
if the partition is empty.Copyright © 2009-2021 The Apache Software Foundation