public final class AtomicBTreePartition extends AbstractBTreePartition
AbstractBTreePartition.Holder
Modifier and Type | Field and Description |
---|---|
static long |
EMPTY_SIZE |
EMPTY, HOLDER_UNSHARED_HEAP_SIZE, partitionKey
Constructor and Description |
---|
AtomicBTreePartition(TableMetadataRef metadata,
DecoratedKey partitionKey,
MemtableAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
long[] |
addAllWithSizeDelta(PartitionUpdate update,
Cloner cloner,
OpOrder.Group writeOp,
UpdateTransaction indexer)
Adds a given update to this in-memtable partition.
|
protected boolean |
canHaveShadowedData() |
DeletionInfo |
deletionInfo() |
Row |
getRow(Clustering<?> clustering)
Returns the row corresponding to the provided clustering, or null if there is not such row.
|
protected AbstractBTreePartition.Holder |
holder() |
java.util.Iterator<Row> |
iterator() |
Row |
lastRow() |
TableMetadata |
metadata() |
DecoratedKey |
partitionKey() |
Row |
staticRow() |
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.
|
AbstractBTreePartition.Holder |
unsafeGetHolder() |
void |
unsafeSetHolder(AbstractBTreePartition.Holder holder) |
boolean |
useLock() |
build, build, build, columns, hasRows, isEmpty, partitionLevelDeletion, rowCount, stats, toString, unsafeConstructHolder, unsafeGetEmptyHolder
public AtomicBTreePartition(TableMetadataRef metadata, DecoratedKey partitionKey, MemtableAllocator allocator)
protected AbstractBTreePartition.Holder holder()
holder
in class AbstractBTreePartition
public TableMetadata metadata()
metadata
in interface Partition
metadata
in class AbstractBTreePartition
protected boolean canHaveShadowedData()
canHaveShadowedData
in class AbstractBTreePartition
public long[] addAllWithSizeDelta(PartitionUpdate update, Cloner cloner, OpOrder.Group writeOp, UpdateTransaction indexer)
public DeletionInfo deletionInfo()
deletionInfo
in class AbstractBTreePartition
public Row staticRow()
staticRow
in class AbstractBTreePartition
public DecoratedKey partitionKey()
partitionKey
in interface Partition
partitionKey
in class AbstractBTreePartition
public Row getRow(Clustering<?> clustering)
Partition
getRow
in interface Partition
getRow
in class AbstractBTreePartition
clustering
- clustering key to searchpublic Row lastRow()
lastRow
in class AbstractBTreePartition
public UnfilteredRowIterator unfilteredIterator(ColumnFilter selection, Slices slices, boolean reversed)
Partition
unfilteredIterator
in interface Partition
unfilteredIterator
in class AbstractBTreePartition
public UnfilteredRowIterator unfilteredIterator(ColumnFilter selection, java.util.NavigableSet<Clustering<?>> clusteringsInQueryOrder, boolean reversed)
Partition
unfilteredIterator
in interface Partition
unfilteredIterator
in class AbstractBTreePartition
public UnfilteredRowIterator unfilteredIterator()
Partition
unfilteredIterator
in interface Partition
unfilteredIterator
in class AbstractBTreePartition
public UnfilteredRowIterator unfilteredIterator(AbstractBTreePartition.Holder current, ColumnFilter selection, Slices slices, boolean reversed)
unfilteredIterator
in class AbstractBTreePartition
public java.util.Iterator<Row> iterator()
iterator
in interface java.lang.Iterable<Row>
iterator
in class AbstractBTreePartition
public boolean useLock()
public void unsafeSetHolder(AbstractBTreePartition.Holder holder)
public AbstractBTreePartition.Holder unsafeGetHolder()
Copyright © 2009- The Apache Software Foundation