public abstract class AbstractBTreePartition extends java.lang.Object implements Partition, java.lang.Iterable<Row>
| Modifier and Type | Class and Description |
|---|---|
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) |
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.
|
static AbstractBTreePartition.Holder |
unsafeConstructHolder(RegularAndStaticColumns columns,
java.lang.Object[] tree,
DeletionInfo deletionInfo,
Row staticRow,
EncodingStats stats) |
static AbstractBTreePartition.Holder |
unsafeGetEmptyHolder() |
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()
Partitionpublic boolean hasRows()
public abstract TableMetadata metadata()
public DecoratedKey partitionKey()
partitionKey in interface Partitionpublic DeletionTime partitionLevelDeletion()
partitionLevelDeletion in interface Partitionpublic RegularAndStaticColumns columns()
public EncodingStats stats()
public Row getRow(Clustering<?> clustering)
Partitionpublic UnfilteredRowIterator unfilteredIterator(ColumnFilter selection, java.util.NavigableSet<Clustering<?>> clusteringsInQueryOrder, boolean reversed)
PartitionunfilteredIterator in interface Partitionpublic UnfilteredRowIterator unfilteredIterator()
PartitionunfilteredIterator in interface Partitionpublic UnfilteredRowIterator unfilteredIterator(ColumnFilter selection, Slices slices, boolean reversed)
PartitionunfilteredIterator in interface Partitionpublic 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)
public java.lang.String toString()
toString in class java.lang.Objectpublic int rowCount()
public java.util.Iterator<Row> iterator()
iterator in interface java.lang.Iterable<Row>public Row lastRow()
public static AbstractBTreePartition.Holder unsafeGetEmptyHolder()
public static AbstractBTreePartition.Holder unsafeConstructHolder(RegularAndStaticColumns columns, java.lang.Object[] tree, DeletionInfo deletionInfo, Row staticRow, EncodingStats stats)
Copyright © 2009-2022 The Apache Software Foundation