public class AtomicBTreePartition extends AbstractBTreePartition
AbstractBTreePartition.Holder, AbstractBTreePartition.SlicesIterator
Modifier and Type | Field and Description |
---|---|
static long |
EMPTY_SIZE |
EMPTY, metadata, partitionKey
Constructor and Description |
---|
AtomicBTreePartition(CFMetaData metadata,
DecoratedKey partitionKey,
MemtableAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
long[] |
addAllWithSizeDelta(PartitionUpdate update,
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() |
DecoratedKey |
partitionKey() |
SearchIterator<Clustering,Row> |
searchIterator(ColumnFilter columns,
boolean reversed)
Returns an iterator that allows to search specific rows efficiently.
|
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,
Slices slices,
boolean reversed)
Returns an UnfilteredRowIterator over the rows/RT contained by this partition
selected by the provided slices.
|
boolean |
useLock() |
build, build, build, build, columns, hasRows, isEmpty, metadata, partitionLevelDeletion, rowCount, stats, toString
public AtomicBTreePartition(CFMetaData metadata, DecoratedKey partitionKey, MemtableAllocator allocator)
protected AbstractBTreePartition.Holder holder()
holder
in class AbstractBTreePartition
protected boolean canHaveShadowedData()
canHaveShadowedData
in class AbstractBTreePartition
public long[] addAllWithSizeDelta(PartitionUpdate update, 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
public Row lastRow()
lastRow
in class AbstractBTreePartition
public SearchIterator<Clustering,Row> searchIterator(ColumnFilter columns, boolean reversed)
Partition
searchIterator
in interface Partition
searchIterator
in class AbstractBTreePartition
public UnfilteredRowIterator unfilteredIterator(ColumnFilter selection, Slices slices, 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()
Copyright © 2009- The Apache Software Foundation