public interface DeletionInfo extends IMeasurableMemory
Note that in practice MutableDeletionInfo
is the only concrete implementation of this, however
different parts of the code will return either DeletionInfo
or MutableDeletionInfo
based
on whether it can/should be mutated or not.
Warning: do not ever cast a DeletionInfo
into a MutableDeletionInfo
to mutate it!!!
TODO: it would be safer to have 2 actual implementation of DeletionInfo, one mutable and one that isn't (I'm
just lazy right this minute).
Modifier and Type | Field and Description |
---|---|
static DeletionInfo |
LIVE |
Modifier and Type | Method and Description |
---|---|
void |
collectStats(EncodingStats.Collector collector) |
DeletionInfo |
copy(AbstractAllocator allocator) |
int |
dataSize() |
DeletionTime |
getPartitionDeletion() |
boolean |
hasRanges() |
boolean |
isLive()
Returns whether this DeletionInfo is live, that is deletes no columns.
|
long |
maxTimestamp() |
boolean |
mayModify(DeletionInfo delInfo)
Whether this deletion info may modify the provided one if added to it.
|
MutableDeletionInfo |
mutableCopy() |
int |
rangeCount() |
RangeTombstone |
rangeCovering(Clustering name) |
java.util.Iterator<RangeTombstone> |
rangeIterator(boolean reversed) |
java.util.Iterator<RangeTombstone> |
rangeIterator(Slice slice,
boolean reversed) |
unsharedHeapSize
static final DeletionInfo LIVE
boolean isLive()
DeletionTime getPartitionDeletion()
java.util.Iterator<RangeTombstone> rangeIterator(boolean reversed)
java.util.Iterator<RangeTombstone> rangeIterator(Slice slice, boolean reversed)
RangeTombstone rangeCovering(Clustering name)
void collectStats(EncodingStats.Collector collector)
int dataSize()
boolean hasRanges()
int rangeCount()
long maxTimestamp()
boolean mayModify(DeletionInfo delInfo)
MutableDeletionInfo mutableCopy()
DeletionInfo copy(AbstractAllocator allocator)
Copyright © 2016 The Apache Software Foundation