public class DeletionInfo
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DeletionInfo.Serializer |
| Constructor and Description |
|---|
DeletionInfo(java.nio.ByteBuffer start,
java.nio.ByteBuffer end,
java.util.Comparator<java.nio.ByteBuffer> comparator,
long markedForDeleteAt,
int localDeletionTime) |
DeletionInfo(DeletionTime topLevel) |
DeletionInfo(long markedForDeleteAt,
int localDeletionTime) |
DeletionInfo(RangeTombstone rangeTombstone,
java.util.Comparator<java.nio.ByteBuffer> comparator) |
| Modifier and Type | Method and Description |
|---|---|
DeletionInfo |
add(DeletionInfo newInfo)
Adds the provided deletion infos to the current ones.
|
void |
add(DeletionTime newInfo) |
void |
add(RangeTombstone tombstone,
java.util.Comparator<java.nio.ByteBuffer> comparator) |
DeletionInfo |
copy() |
int |
dataSize() |
boolean |
equals(java.lang.Object o) |
DeletionTime |
getTopLevelDeletion() |
int |
hashCode() |
boolean |
hasIrrelevantData(int gcBefore) |
boolean |
isDeleted(java.nio.ByteBuffer name,
long timestamp) |
boolean |
isDeleted(IColumn column)
Return whether a given column is deleted by the container having this
deletion info.
|
boolean |
isLive()
Returns whether this DeletionInfo is live, that is deletes no columns.
|
static DeletionInfo |
live() |
long |
maxTimestamp()
The maximum timestamp mentioned by this DeletionInfo.
|
long |
minTimestamp() |
void |
purge(int gcBefore)
Purge every tombstones that are older than
gcbefore. |
java.util.Iterator<RangeTombstone> |
rangeIterator() |
static DeletionInfo.Serializer |
serializer() |
java.lang.String |
toString() |
public DeletionInfo(long markedForDeleteAt,
int localDeletionTime)
public DeletionInfo(DeletionTime topLevel)
public DeletionInfo(java.nio.ByteBuffer start,
java.nio.ByteBuffer end,
java.util.Comparator<java.nio.ByteBuffer> comparator,
long markedForDeleteAt,
int localDeletionTime)
public DeletionInfo(RangeTombstone rangeTombstone, java.util.Comparator<java.nio.ByteBuffer> comparator)
public static DeletionInfo live()
public static DeletionInfo.Serializer serializer()
public DeletionInfo copy()
public boolean isLive()
public boolean isDeleted(IColumn column)
column - the column to check.public boolean isDeleted(java.nio.ByteBuffer name,
long timestamp)
public void purge(int gcBefore)
gcbefore.gcBefore - timestamp (in seconds) before which tombstones should
be purgedpublic boolean hasIrrelevantData(int gcBefore)
public void add(DeletionTime newInfo)
public void add(RangeTombstone tombstone, java.util.Comparator<java.nio.ByteBuffer> comparator)
public DeletionInfo add(DeletionInfo newInfo)
public long minTimestamp()
public long maxTimestamp()
public DeletionTime getTopLevelDeletion()
public java.util.Iterator<RangeTombstone> rangeIterator()
public int dataSize()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.ObjectCopyright © 2014 The Apache Software Foundation