public class RangeTombstone extends Interval<java.nio.ByteBuffer,DeletionTime> implements OnDiskAtom
Modifier and Type | Class and Description |
---|---|
static class |
RangeTombstone.Serializer |
static class |
RangeTombstone.Tracker |
Modifier and Type | Field and Description |
---|---|
static RangeTombstone.Serializer |
serializer |
Constructor and Description |
---|
RangeTombstone(java.nio.ByteBuffer start,
java.nio.ByteBuffer stop,
DeletionTime delTime) |
RangeTombstone(java.nio.ByteBuffer start,
java.nio.ByteBuffer stop,
long markedForDeleteAt,
int localDeletionTime) |
Modifier and Type | Method and Description |
---|---|
int |
getLocalDeletionTime() |
long |
maxTimestamp() |
long |
minTimestamp()
For a standard column, this is the same as timestamp().
|
java.nio.ByteBuffer |
name() |
int |
serializedSize(TypeSizes typeSizes) |
long |
serializedSizeForSSTable() |
boolean |
supersedes(RangeTombstone rt,
java.util.Comparator<java.nio.ByteBuffer> comparator)
This tombstone supersedes another one if it is more recent and cover a
bigger range than rt.
|
void |
updateDigest(java.security.MessageDigest digest) |
void |
validateFields(CFMetaData metadata) |
public static final RangeTombstone.Serializer serializer
public RangeTombstone(java.nio.ByteBuffer start, java.nio.ByteBuffer stop, long markedForDeleteAt, int localDeletionTime)
public RangeTombstone(java.nio.ByteBuffer start, java.nio.ByteBuffer stop, DeletionTime delTime)
public java.nio.ByteBuffer name()
name
in interface OnDiskAtom
public int getLocalDeletionTime()
getLocalDeletionTime
in interface OnDiskAtom
public long minTimestamp()
OnDiskAtom
minTimestamp
in interface OnDiskAtom
public long maxTimestamp()
maxTimestamp
in interface OnDiskAtom
public int serializedSize(TypeSizes typeSizes)
serializedSize
in interface OnDiskAtom
public long serializedSizeForSSTable()
serializedSizeForSSTable
in interface OnDiskAtom
public void validateFields(CFMetaData metadata) throws MarshalException
validateFields
in interface OnDiskAtom
MarshalException
public void updateDigest(java.security.MessageDigest digest)
updateDigest
in interface OnDiskAtom
public boolean supersedes(RangeTombstone rt, java.util.Comparator<java.nio.ByteBuffer> comparator)
Copyright © 2013 The Apache Software Foundation