Class AbstractBTreePartition
java.lang.Object
org.apache.cassandra.db.partitions.AbstractBTreePartition
- Direct Known Subclasses:
AtomicBTreePartition,ImmutableBTreePartition,PartitionUpdate
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static BTreePartitionDatabuild(RowIterator rows, DeletionInfo deletion, boolean buildEncodingStats) protected static BTreePartitionDatabuild(UnfilteredRowIterator iterator, int initialRowCapacity) protected static BTreePartitionDatabuild(UnfilteredRowIterator iterator, int initialRowCapacity, boolean ordered) protected abstract booleancolumns()booleangetRow(Clustering<?> clustering) Returns the row corresponding to the provided clustering, or null if there is not such row.booleanhasRows()Whether the partition object has rows.protected abstract BTreePartitionDataholder()booleanisEmpty()Whether the partition object has no informations at all, including any deletion informations.iterator()lastRow()abstract TableMetadatametadata()introwCount()stats()toString()toString(boolean includeFullDetails) Returns an UnfilteredRowIterator over all the rows/RT contained by this partition.unfilteredIterator(ColumnFilter selection, NavigableSet<Clustering<?>> clusteringsInQueryOrder, boolean reversed) Returns an UnfilteredRowIterator over the rows/RT contained by this partition selected by the provided clusterings.unfilteredIterator(ColumnFilter selection, Slices slices, boolean reversed) Returns an UnfilteredRowIterator over the rows/RT contained by this partition selected by the provided slices.unfilteredIterator(BTreePartitionData current, ColumnFilter selection, Slices slices, boolean reversed) Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
partitionKey
-
-
Constructor Details
-
AbstractBTreePartition
-
-
Method Details
-
holder
-
canHaveShadowedData
protected abstract boolean canHaveShadowedData() -
deletionInfo
-
staticRow
-
isEmpty
public boolean isEmpty()Description copied from interface:PartitionWhether the partition object has no informations at all, including any deletion informations. -
hasRows
public boolean hasRows()Description copied from interface:PartitionWhether the partition object has rows. This may be false but partition still be non-empty if it has a deletion. -
metadata
-
partitionKey
- Specified by:
partitionKeyin interfacePartition
-
partitionLevelDeletion
- Specified by:
partitionLevelDeletionin interfacePartition
-
columns
-
stats
-
getRow
Description copied from interface:PartitionReturns the row corresponding to the provided clustering, or null if there is not such row. -
unfilteredIterator
Description copied from interface:PartitionReturns an UnfilteredRowIterator over all the rows/RT contained by this partition.- Specified by:
unfilteredIteratorin interfacePartition
-
unfilteredIterator
public UnfilteredRowIterator unfilteredIterator(ColumnFilter selection, Slices slices, boolean reversed) Description copied from interface:PartitionReturns an UnfilteredRowIterator over the rows/RT contained by this partition selected by the provided slices.- Specified by:
unfilteredIteratorin interfacePartition
-
unfilteredIterator
public UnfilteredRowIterator unfilteredIterator(BTreePartitionData current, ColumnFilter selection, Slices slices, boolean reversed) -
build
-
build
protected static BTreePartitionData build(UnfilteredRowIterator iterator, int initialRowCapacity, boolean ordered) -
build
protected static BTreePartitionData build(RowIterator rows, DeletionInfo deletion, boolean buildEncodingStats) -
toString
-
toString
-
equals
-
rowCount
public int rowCount() -
iterator
-
lastRow
-