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()
Partition
public CFMetaData metadata()
public DecoratedKey partitionKey()
partitionKey
in interface Partition
public DeletionTime partitionLevelDeletion()
partitionLevelDeletion
in interface Partition
public PartitionColumns columns()
public boolean hasRows()
public EncodingStats stats()
public Row getRow(Clustering clustering)
Partition
public SearchIterator<Clustering,Row> searchIterator(ColumnFilter columns, boolean reversed)
Partition
searchIterator
in interface Partition
public UnfilteredRowIterator unfilteredIterator()
Partition
unfilteredIterator
in interface Partition
public UnfilteredRowIterator unfilteredIterator(ColumnFilter selection, Slices slices, boolean reversed)
Partition
unfilteredIterator
in interface Partition
public long[] addAllWithSizeDelta(PartitionUpdate update, OpOrder.Group writeOp, SecondaryIndexManager.Updater indexer)
public boolean usePessimisticLocking()
Copyright © 2015 The Apache Software Foundation