Package org.apache.cassandra.db
Interface DeletionInfo
- All Superinterfaces:
IMeasurableMemory
- All Known Implementing Classes:
MutableDeletionInfo
A combination of a top-level (partition) tombstone and range tombstones describing the deletions
within a partition.
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).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionclone(ByteBufferCloner cloner) voidcollectStats(EncodingStats.Collector collector) intdataSize()booleanbooleanisLive()Returns whether this DeletionInfo is live, that is deletes no columns.longbooleanmayModify(DeletionInfo delInfo) Whether this deletion info may modify the provided one if added to it.intrangeCovering(Clustering<?> name) rangeIterator(boolean reversed) rangeIterator(Slice slice, boolean reversed) Methods inherited from interface org.apache.cassandra.cache.IMeasurableMemory
unsharedHeapSize
-
Field Details
-
LIVE
-
-
Method Details
-
isLive
boolean isLive()Returns whether this DeletionInfo is live, that is deletes no columns. -
getPartitionDeletion
DeletionTime getPartitionDeletion() -
rangeIterator
-
rangeIterator
-
rangeCovering
-
collectStats
-
dataSize
int dataSize() -
hasRanges
boolean hasRanges() -
rangeCount
int rangeCount() -
maxTimestamp
long maxTimestamp() -
mayModify
Whether this deletion info may modify the provided one if added to it. -
mutableCopy
MutableDeletionInfo mutableCopy() -
clone
-