public class AtomicBTreePartition extends java.lang.Object implements Partition
| Modifier and Type | Class and Description |
|---|---|
class |
AtomicBTreePartition.SlicesIterator |
| Modifier and Type | Field and Description |
|---|---|
static long |
EMPTY_SIZE |
| Constructor and Description |
|---|
AtomicBTreePartition(CFMetaData metadata,
DecoratedKey partitionKey,
MemtableAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
long[] |
addAllWithSizeDelta(PartitionUpdate update,
OpOrder.Group writeOp,
SecondaryIndexManager.Updater indexer)
Adds a given update to this in-memtable partition.
|
PartitionColumns |
columns() |
Row |
getRow(Clustering clustering)
Returns the row corresponding to the provided clustering, or null if there is not such row.
|
boolean |
hasRows() |
boolean |
isEmpty()
Whether the partition object has no informations at all, including any deletion informations.
|
CFMetaData |
metadata() |
DecoratedKey |
partitionKey() |
DeletionTime |
partitionLevelDeletion() |
SearchIterator<Clustering,Row> |
searchIterator(ColumnFilter columns,
boolean reversed)
Returns an iterator that allows to search specific rows efficiently.
|
EncodingStats |
stats() |
UnfilteredRowIterator |
unfilteredIterator()
Returns an UnfilteredRowIterator over all the rows/RT contained by this partition.
|
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 |
usePessimisticLocking() |
public AtomicBTreePartition(CFMetaData metadata, DecoratedKey partitionKey, MemtableAllocator allocator)
public boolean isEmpty()
Partitionpublic CFMetaData metadata()
public DecoratedKey partitionKey()
partitionKey in interface Partitionpublic DeletionTime partitionLevelDeletion()
partitionLevelDeletion in interface Partitionpublic PartitionColumns columns()
public boolean hasRows()
public EncodingStats stats()
public Row getRow(Clustering clustering)
Partitionpublic SearchIterator<Clustering,Row> searchIterator(ColumnFilter columns, boolean reversed)
PartitionsearchIterator in interface Partitionpublic UnfilteredRowIterator unfilteredIterator()
PartitionunfilteredIterator in interface Partitionpublic UnfilteredRowIterator unfilteredIterator(ColumnFilter selection, Slices slices, boolean reversed)
PartitionunfilteredIterator in interface Partitionpublic long[] addAllWithSizeDelta(PartitionUpdate update, OpOrder.Group writeOp, SecondaryIndexManager.Updater indexer)
public boolean usePessimisticLocking()
Copyright © 2015 The Apache Software Foundation