public abstract class AbstractBTreePartition extends java.lang.Object implements Partition, java.lang.Iterable<Row>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractBTreePartition.Holder |
Modifier and Type | Field and Description |
---|---|
protected static AbstractBTreePartition.Holder |
EMPTY |
static long |
HOLDER_UNSHARED_HEAP_SIZE |
protected DecoratedKey |
partitionKey |
Modifier | Constructor and Description |
---|---|
protected |
AbstractBTreePartition(DecoratedKey partitionKey) |
Modifier and Type | Method and Description |
---|---|
protected static AbstractBTreePartition.Holder |
build(RowIterator rows,
DeletionInfo deletion,
boolean buildEncodingStats,
int initialRowCapacity) |
protected static AbstractBTreePartition.Holder |
build(UnfilteredRowIterator iterator,
int initialRowCapacity) |
protected static AbstractBTreePartition.Holder |
build(UnfilteredRowIterator iterator,
int initialRowCapacity,
boolean ordered) |
protected abstract boolean |
canHaveShadowedData() |
RegularAndStaticColumns |
columns() |
DeletionInfo |
deletionInfo() |
Row |
getRow(Clustering<?> clustering)
Returns the row corresponding to the provided clustering, or null if there is not such row.
|
boolean |
hasRows() |
protected abstract AbstractBTreePartition.Holder |
holder() |
boolean |
isEmpty()
Whether the partition object has no informations at all, including any deletion informations.
|
java.util.Iterator<Row> |
iterator() |
Row |
lastRow() |
abstract TableMetadata |
metadata() |
DecoratedKey |
partitionKey() |
DeletionTime |
partitionLevelDeletion() |
int |
rowCount() |
Row |
staticRow() |
EncodingStats |
stats() |
java.lang.String |
toString() |
UnfilteredRowIterator |
unfilteredIterator()
Returns an UnfilteredRowIterator over all the rows/RT contained by this partition.
|
UnfilteredRowIterator |
unfilteredIterator(AbstractBTreePartition.Holder current,
ColumnFilter selection,
Slices slices,
boolean reversed) |
UnfilteredRowIterator |
unfilteredIterator(ColumnFilter selection,
java.util.NavigableSet<Clustering<?>> clusteringsInQueryOrder,
boolean reversed)
Returns an UnfilteredRowIterator over the rows/RT contained by this partition
selected by the provided clusterings.
|
UnfilteredRowIterator |
unfilteredIterator(ColumnFilter selection,
Slices slices,
boolean reversed)
Returns an UnfilteredRowIterator over the rows/RT contained by this partition
selected by the provided slices.
|
protected static final AbstractBTreePartition.Holder EMPTY
public static final long HOLDER_UNSHARED_HEAP_SIZE
protected final DecoratedKey partitionKey
protected AbstractBTreePartition(DecoratedKey partitionKey)
protected abstract AbstractBTreePartition.Holder holder()
protected abstract boolean canHaveShadowedData()
public DeletionInfo deletionInfo()
public Row staticRow()
public boolean isEmpty()
Partition
public boolean hasRows()
public abstract TableMetadata metadata()
public DecoratedKey partitionKey()
partitionKey
in interface Partition
public DeletionTime partitionLevelDeletion()
partitionLevelDeletion
in interface Partition
public RegularAndStaticColumns columns()
public EncodingStats stats()
public Row getRow(Clustering<?> clustering)
Partition
public UnfilteredRowIterator unfilteredIterator(ColumnFilter selection, java.util.NavigableSet<Clustering<?>> clusteringsInQueryOrder, boolean reversed)
Partition
unfilteredIterator
in interface Partition
public UnfilteredRowIterator unfilteredIterator()
Partition
unfilteredIterator
in interface Partition
public UnfilteredRowIterator unfilteredIterator(ColumnFilter selection, Slices slices, boolean reversed)
Partition
unfilteredIterator
in interface Partition
public UnfilteredRowIterator unfilteredIterator(AbstractBTreePartition.Holder current, ColumnFilter selection, Slices slices, boolean reversed)
protected static AbstractBTreePartition.Holder build(UnfilteredRowIterator iterator, int initialRowCapacity)
protected static AbstractBTreePartition.Holder build(UnfilteredRowIterator iterator, int initialRowCapacity, boolean ordered)
protected static AbstractBTreePartition.Holder build(RowIterator rows, DeletionInfo deletion, boolean buildEncodingStats, int initialRowCapacity)
public java.lang.String toString()
toString
in class java.lang.Object
public int rowCount()
public java.util.Iterator<Row> iterator()
iterator
in interface java.lang.Iterable<Row>
public Row lastRow()
Copyright © 2009-2021 The Apache Software Foundation