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 DeletionInfo
public MutableDeletionInfo copy(AbstractAllocator allocator)
copy
in interface DeletionInfo
public boolean isLive()
isLive
in interface DeletionInfo
public 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 DeletionInfo
public java.util.Iterator<RangeTombstone> rangeIterator(boolean reversed)
rangeIterator
in interface DeletionInfo
public java.util.Iterator<RangeTombstone> rangeIterator(Slice slice, boolean reversed)
rangeIterator
in interface DeletionInfo
public RangeTombstone rangeCovering(Clustering name)
rangeCovering
in interface DeletionInfo
public int dataSize()
dataSize
in interface DeletionInfo
public boolean hasRanges()
hasRanges
in interface DeletionInfo
public int rangeCount()
rangeCount
in interface DeletionInfo
public long maxTimestamp()
maxTimestamp
in interface DeletionInfo
public boolean mayModify(DeletionInfo delInfo)
mayModify
in interface DeletionInfo
public java.lang.String toString()
toString
in class java.lang.Object
public DeletionInfo updateAllTimestamp(long timestamp)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public long unsharedHeapSize()
unsharedHeapSize
in interface IMeasurableMemory
public void collectStats(EncodingStats.Collector collector)
collectStats
in interface DeletionInfo
public static MutableDeletionInfo.Builder builder(DeletionTime partitionLevelDeletion, ClusteringComparator comparator, boolean reversed)
Copyright © 2017 The Apache Software Foundation