public class DeletionTime extends java.lang.Object implements java.lang.Comparable<DeletionTime>, IMeasurableMemory
Modifier and Type | Class and Description |
---|---|
static class |
DeletionTime.Serializer |
Modifier and Type | Field and Description |
---|---|
static DeletionTime |
LIVE
A special DeletionTime that signifies that there is no top-level (row) tombstone.
|
int |
localDeletionTime
The local server timestamp, in seconds since the unix epoch, at which this tombstone was created.
|
long |
markedForDeleteAt
A timestamp (typically in microseconds since the unix epoch, although this is not enforced) after which
data should be considered deleted.
|
static DeletionTime.Serializer |
serializer |
Constructor and Description |
---|
DeletionTime(long markedForDeleteAt,
int localDeletionTime) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DeletionTime dt) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isDeleted(OnDiskAtom atom) |
boolean |
isGcAble(int gcBefore) |
boolean |
isLive()
Returns whether this DeletionTime is live, that is deletes no columns.
|
boolean |
supersedes(DeletionTime dt) |
java.lang.String |
toString() |
long |
unsharedHeapSize() |
public static final DeletionTime LIVE
public final long markedForDeleteAt
public final int localDeletionTime
public static final DeletionTime.Serializer serializer
public boolean isLive()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(DeletionTime dt)
compareTo
in interface java.lang.Comparable<DeletionTime>
public boolean isGcAble(int gcBefore)
public boolean isDeleted(OnDiskAtom atom)
public boolean supersedes(DeletionTime dt)
public long unsharedHeapSize()
unsharedHeapSize
in interface IMeasurableMemory
Copyright © 2018 The Apache Software Foundation