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 |
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
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, int initialRowCapacity)
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()
Copyright © 2009-2020 The Apache Software Foundation