public class ExpiringCell extends Cell
OnDiskAtom.Serializer
Modifier and Type | Field and Description |
---|---|
static int |
MAX_TTL |
MAX_NAME_LENGTH, name, timestamp, value
Constructor and Description |
---|
ExpiringCell(CellName name,
java.nio.ByteBuffer value,
long timestamp,
int timeToLive) |
ExpiringCell(CellName name,
java.nio.ByteBuffer value,
long timestamp,
int timeToLive,
int localExpirationTime) |
Modifier and Type | Method and Description |
---|---|
static Cell |
create(CellName name,
java.nio.ByteBuffer value,
long timestamp,
int timeToLive,
int localExpirationTime,
int expireBefore,
ColumnSerializer.Flag flag) |
int |
dataSize() |
boolean |
equals(java.lang.Object o) |
int |
getLocalDeletionTime() |
long |
getMarkedForDeleteAt() |
java.lang.String |
getString(CellNameType comparator) |
int |
getTimeToLive() |
int |
hashCode() |
boolean |
isMarkedForDelete(long now) |
Cell |
localCopy(ColumnFamilyStore cfs,
AbstractAllocator allocator) |
int |
serializationFlags() |
int |
serializedSize(CellNameType type,
TypeSizes typeSizes) |
void |
updateDigest(java.security.MessageDigest digest) |
void |
validateFields(CFMetaData metadata) |
Cell |
withUpdatedName(CellName newName) |
Cell |
withUpdatedTimestamp(long newTimestamp) |
create, diff, excessHeapSizeExcludingData, hasIrrelevantData, isLive, maxTimestamp, minTimestamp, name, onDiskIterator, reconcile, reconcile, timestamp, validateName, value
public static final int MAX_TTL
public ExpiringCell(CellName name, java.nio.ByteBuffer value, long timestamp, int timeToLive)
public ExpiringCell(CellName name, java.nio.ByteBuffer value, long timestamp, int timeToLive, int localExpirationTime)
public static Cell create(CellName name, java.nio.ByteBuffer value, long timestamp, int timeToLive, int localExpirationTime, int expireBefore, ColumnSerializer.Flag flag)
public int getTimeToLive()
public Cell withUpdatedName(CellName newName)
withUpdatedName
in class Cell
public Cell withUpdatedTimestamp(long newTimestamp)
withUpdatedTimestamp
in class Cell
public int serializedSize(CellNameType type, TypeSizes typeSizes)
serializedSize
in class Cell
public void updateDigest(java.security.MessageDigest digest)
updateDigest
in interface OnDiskAtom
updateDigest
in class Cell
public int getLocalDeletionTime()
getLocalDeletionTime
in interface OnDiskAtom
getLocalDeletionTime
in class Cell
public Cell localCopy(ColumnFamilyStore cfs, AbstractAllocator allocator)
public java.lang.String getString(CellNameType comparator)
public boolean isMarkedForDelete(long now)
isMarkedForDelete
in class Cell
public long getMarkedForDeleteAt()
getMarkedForDeleteAt
in class Cell
public int serializationFlags()
serializationFlags
in class Cell
public void validateFields(CFMetaData metadata) throws MarshalException
validateFields
in interface OnDiskAtom
validateFields
in class Cell
MarshalException
Copyright © 2014 The Apache Software Foundation