public class ArrayBackedCachedPartition extends ArrayBackedPartition implements CachedPartition
columns, key, metadata, rowscacheSerializer| Modifier and Type | Method and Description |
|---|---|
int |
cachedLiveRows()
The number of rows that were live at the time the partition was cached.
|
static ArrayBackedCachedPartition |
create(UnfilteredRowIterator iterator,
int nowInSec)
Creates an
ArrayBackedCachedPartition holding all the data of the provided iterator. |
static ArrayBackedCachedPartition |
create(UnfilteredRowIterator iterator,
int initialRowCapacity,
int nowInSec)
Creates an
ArrayBackedCachedPartition holding all the data of the provided iterator. |
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 |
rowsWithNonExpiringCells()
The number of rows in this cached partition that have at least one non-expiring
non-deleted cell.
|
canHaveShadowedData, create, deletionInfo, staticRow, statscolumns, getRow, isEmpty, iterator, metadata, partitionKey, partitionLevelDeletion, rowCount, searchIterator, sliceableUnfilteredIterator, sliceableUnfilteredIterator, toString, unfilteredIterator, unfilteredIteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrowCountcolumns, getRow, isEmpty, metadata, partitionKey, partitionLevelDeletion, searchIterator, stats, unfilteredIterator, unfilteredIteratorpublic static ArrayBackedCachedPartition create(UnfilteredRowIterator iterator, int nowInSec)
ArrayBackedCachedPartition holding all the data of the provided iterator.
Warning: Note that this method does not close the provided iterator and it is
up to the caller to do so.iterator - the iterator got gather in memory.nowInSec - the time of the creation in seconds. This is the time at which cachedLiveRows applies.public static ArrayBackedCachedPartition create(UnfilteredRowIterator iterator, int initialRowCapacity, int nowInSec)
ArrayBackedCachedPartition holding all the data of the provided iterator.
Warning: Note that this method does not close the provided iterator and it is
up to the caller to do so.iterator - the iterator got gather in memory.initialRowCapacity - sizing hint (in rows) to use for the created partition. It should ideally
correspond or be a good estimation of the number or rows in iterator.nowInSec - the time of the creation in seconds. This is the time at which cachedLiveRows applies.public Row lastRow()
CachedPartitionlastRow in interface CachedPartitionnull if the partition is empty.public int cachedLiveRows()
ColumnFamilyStore.isFilterFullyCoveredBy(org.apache.cassandra.db.filter.ClusteringIndexFilter, org.apache.cassandra.db.filter.DataLimits, org.apache.cassandra.db.partitions.CachedPartition, int) to see why we need this.cachedLiveRows in interface CachedPartitionpublic int rowsWithNonExpiringCells()
DataLimits.hasEnoughLiveData(org.apache.cassandra.db.partitions.CachedPartition, int) as an optimization.rowsWithNonExpiringCells in interface CachedPartitionpublic int nonTombstoneCellCount()
CachedPartitioncell 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.nonTombstoneCellCount in interface CachedPartitionpublic int nonExpiringLiveCells()
CachedPartitionDataLimits#hasEnoughLiveData as an optimization.nonExpiringLiveCells in interface CachedPartitionCopyright © 2015 The Apache Software Foundation