org.apache.cassandra.db
Class RangeTombstone
java.lang.Object
org.apache.cassandra.utils.Interval<java.nio.ByteBuffer,DeletionTime>
org.apache.cassandra.db.RangeTombstone
- All Implemented Interfaces:
- OnDiskAtom
public class RangeTombstone
- extends Interval<java.nio.ByteBuffer,DeletionTime>
- implements OnDiskAtom
Constructor Summary |
RangeTombstone(java.nio.ByteBuffer start,
java.nio.ByteBuffer stop,
DeletionTime delTime)
|
RangeTombstone(java.nio.ByteBuffer start,
java.nio.ByteBuffer stop,
long markedForDeleteAt,
int localDeletionTime)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serializer
public static final RangeTombstone.Serializer serializer
RangeTombstone
public RangeTombstone(java.nio.ByteBuffer start,
java.nio.ByteBuffer stop,
long markedForDeleteAt,
int localDeletionTime)
RangeTombstone
public RangeTombstone(java.nio.ByteBuffer start,
java.nio.ByteBuffer stop,
DeletionTime delTime)
name
public java.nio.ByteBuffer name()
- Specified by:
name
in interface OnDiskAtom
getLocalDeletionTime
public int getLocalDeletionTime()
- Specified by:
getLocalDeletionTime
in interface OnDiskAtom
maxTimestamp
public long maxTimestamp()
- Description copied from interface:
OnDiskAtom
- For a standard column, this is the same as timestamp().
For a super column, this is the max column timestamp of the sub columns.
- Specified by:
maxTimestamp
in interface OnDiskAtom
serializedSize
public int serializedSize(TypeSizes typeSizes)
- Specified by:
serializedSize
in interface OnDiskAtom
serializedSizeForSSTable
public long serializedSizeForSSTable()
- Specified by:
serializedSizeForSSTable
in interface OnDiskAtom
validateFields
public void validateFields(CFMetaData metadata)
throws MarshalException
- Specified by:
validateFields
in interface OnDiskAtom
- Throws:
MarshalException
updateDigest
public void updateDigest(java.security.MessageDigest digest)
- Specified by:
updateDigest
in interface OnDiskAtom
supersedes
public 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.
Copyright © 2012 The Apache Software Foundation