public class MutableDeletionInfo extends java.lang.Object implements DeletionInfo
DeletionInfo.| Modifier and Type | Class and Description |
|---|---|
static class |
MutableDeletionInfo.Builder
Builds DeletionInfo object from (in order) range tombstone markers.
|
LIVE| Constructor and Description |
|---|
MutableDeletionInfo(DeletionTime partitionDeletion) |
MutableDeletionInfo(DeletionTime partitionDeletion,
RangeTombstoneList ranges) |
MutableDeletionInfo(long markedForDeleteAt,
int localDeletionTime)
Creates a DeletionInfo with only a top-level (row) tombstone.
|
| Modifier and Type | Method and Description |
|---|---|
DeletionInfo |
add(DeletionInfo newInfo)
Combines another DeletionInfo with this one and returns the result.
|
void |
add(DeletionTime newInfo)
Potentially replaces the top-level tombstone with another, keeping whichever has the higher markedForDeleteAt
timestamp.
|
void |
add(RangeTombstone tombstone,
ClusteringComparator comparator) |
static MutableDeletionInfo.Builder |
builder(DeletionTime partitionLevelDeletion,
ClusteringComparator comparator,
boolean reversed) |
void |
collectStats(EncodingStats.Collector collector) |
MutableDeletionInfo |
copy(AbstractAllocator allocator) |
int |
dataSize() |
boolean |
equals(java.lang.Object o) |
DeletionTime |
getPartitionDeletion() |
int |
hashCode() |
boolean |
hasRanges() |
boolean |
isLive()
Returns whether this DeletionInfo is live, that is deletes no columns.
|
static MutableDeletionInfo |
live()
Returns a new DeletionInfo that has no top-level tombstone or any range tombstones.
|
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) |
java.lang.String |
toString() |
long |
unsharedHeapSize() |
DeletionInfo |
updateAllTimestamp(long timestamp) |
public MutableDeletionInfo(long markedForDeleteAt,
int localDeletionTime)
markedForDeleteAt - the time after which the entire row should be considered deletedlocalDeletionTime - what time the deletion write was applied locally (for purposes of
purging the tombstone after gc_grace_seconds).public MutableDeletionInfo(DeletionTime partitionDeletion)
public MutableDeletionInfo(DeletionTime partitionDeletion, RangeTombstoneList ranges)
public static MutableDeletionInfo live()
public MutableDeletionInfo mutableCopy()
mutableCopy in interface DeletionInfopublic MutableDeletionInfo copy(AbstractAllocator allocator)
copy in interface DeletionInfopublic boolean isLive()
isLive in interface DeletionInfopublic void add(DeletionTime newInfo)
newInfo - the deletion time to add to this deletion info.public void add(RangeTombstone tombstone, ClusteringComparator comparator)
public DeletionInfo add(DeletionInfo newInfo)
public DeletionTime getPartitionDeletion()
getPartitionDeletion in interface DeletionInfopublic java.util.Iterator<RangeTombstone> rangeIterator(boolean reversed)
rangeIterator in interface DeletionInfopublic java.util.Iterator<RangeTombstone> rangeIterator(Slice slice, boolean reversed)
rangeIterator in interface DeletionInfopublic RangeTombstone rangeCovering(Clustering name)
rangeCovering in interface DeletionInfopublic int dataSize()
dataSize in interface DeletionInfopublic boolean hasRanges()
hasRanges in interface DeletionInfopublic int rangeCount()
rangeCount in interface DeletionInfopublic long maxTimestamp()
maxTimestamp in interface DeletionInfopublic boolean mayModify(DeletionInfo delInfo)
mayModify in interface DeletionInfopublic java.lang.String toString()
toString in class java.lang.Objectpublic DeletionInfo updateAllTimestamp(long timestamp)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic long unsharedHeapSize()
unsharedHeapSize in interface IMeasurableMemorypublic void collectStats(EncodingStats.Collector collector)
collectStats in interface DeletionInfopublic static MutableDeletionInfo.Builder builder(DeletionTime partitionLevelDeletion, ClusteringComparator comparator, boolean reversed)
Copyright © 2016 The Apache Software Foundation