public abstract class AbstractThreadUnsafePartition extends java.lang.Object implements Partition, java.lang.Iterable<Row>
Modifier and Type | Field and Description |
---|---|
protected PartitionColumns |
columns |
protected DecoratedKey |
key |
protected CFMetaData |
metadata |
protected java.util.List<Row> |
rows |
Modifier | Constructor and Description |
---|---|
protected |
AbstractThreadUnsafePartition(CFMetaData metadata,
DecoratedKey key,
PartitionColumns columns,
java.util.List<Row> rows) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
canHaveShadowedData() |
PartitionColumns |
columns() |
abstract DeletionInfo |
deletionInfo()
The deletion info for the partition update.
|
Row |
getRow(Clustering clustering)
Returns the row corresponding to the provided clustering, or null if there is not such row.
|
boolean |
isEmpty()
Whether the partition object has no informations at all, including any deletion informations.
|
java.util.Iterator<Row> |
iterator()
Returns an iterator that iterators over the rows of this update in clustering order.
|
CFMetaData |
metadata() |
DecoratedKey |
partitionKey() |
DeletionTime |
partitionLevelDeletion() |
int |
rowCount() |
SearchIterator<Clustering,Row> |
searchIterator(ColumnFilter columns,
boolean reversed)
Returns an iterator that allows to search specific rows efficiently.
|
protected SliceableUnfilteredRowIterator |
sliceableUnfilteredIterator() |
protected SliceableUnfilteredRowIterator |
sliceableUnfilteredIterator(ColumnFilter selection,
boolean reversed) |
abstract Row |
staticRow() |
java.lang.String |
toString() |
UnfilteredRowIterator |
unfilteredIterator()
Returns an UnfilteredRowIterator over all the rows/RT contained by this partition.
|
UnfilteredRowIterator |
unfilteredIterator(ColumnFilter columns,
Slices slices,
boolean reversed)
Returns an UnfilteredRowIterator over the rows/RT contained by this partition
selected by the provided slices.
|
protected final CFMetaData metadata
protected final DecoratedKey key
protected final PartitionColumns columns
protected final java.util.List<Row> rows
protected AbstractThreadUnsafePartition(CFMetaData metadata, DecoratedKey key, PartitionColumns columns, java.util.List<Row> rows)
public CFMetaData metadata()
public DecoratedKey partitionKey()
partitionKey
in interface Partition
public DeletionTime partitionLevelDeletion()
partitionLevelDeletion
in interface Partition
public PartitionColumns columns()
public abstract Row staticRow()
protected abstract boolean canHaveShadowedData()
public abstract DeletionInfo deletionInfo()
MutableDeletionInfo
to modify it!public int rowCount()
public boolean isEmpty()
Partition
public java.lang.String toString()
toString
in class java.lang.Object
public Row getRow(Clustering clustering)
Partition
public java.util.Iterator<Row> iterator()
iterator
in interface java.lang.Iterable<Row>
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 columns, Slices slices, boolean reversed)
Partition
unfilteredIterator
in interface Partition
protected SliceableUnfilteredRowIterator sliceableUnfilteredIterator()
protected SliceableUnfilteredRowIterator sliceableUnfilteredIterator(ColumnFilter selection, boolean reversed)
Copyright © 2015 The Apache Software Foundation