Package org.apache.cassandra.db
Class DeletionTime.InvalidDeletionTime
java.lang.Object
org.apache.cassandra.db.DeletionTime
org.apache.cassandra.db.DeletionTime.InvalidDeletionTime
- All Implemented Interfaces:
Comparable<DeletionTime>,IMeasurableMemory
- Enclosing class:
- DeletionTime
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.db.DeletionTime
DeletionTime.InvalidDeletionTime, DeletionTime.LegacySerializer, DeletionTime.Serializer -
Field Summary
Fields inherited from class org.apache.cassandra.db.DeletionTime
EMPTY_SIZE, LIVE -
Method Summary
Modifier and TypeMethodDescriptionlongThe local server timestamp, in seconds since the unix epoch, at which this tombstone was created.booleanvalidate()Check if this deletion time is valid.Methods inherited from class org.apache.cassandra.db.DeletionTime
build, compareTo, dataSize, deletes, deletes, deletes, digest, equals, getSerializer, hashCode, isLive, markedForDeleteAt, supersedes, toString, unsharedHeapSize
-
Method Details
-
localDeletionTime
public long localDeletionTime()Description copied from class:DeletionTimeThe local server timestamp, in seconds since the unix epoch, at which this tombstone was created. This is only used for purposes of purging the tombstone after gc_grace_seconds have elapsed.- Overrides:
localDeletionTimein classDeletionTime
-
validate
public boolean validate()Description copied from class:DeletionTimeCheck if this deletion time is valid. This is always true, because - as we permit negative timestamps, markedForDeleteAt can be negative. - localDeletionTime is stored as an unsigned int and cannot be negative.- Overrides:
validatein classDeletionTime- Returns:
- true if it is valid
-