public class BufferExpiringCell extends BufferCell implements ExpiringCell
OnDiskAtom.Serializername, timestamp, valueMAX_TTLMAX_NAME_LENGTH| Constructor and Description |
|---|
BufferExpiringCell(CellName name,
java.nio.ByteBuffer value,
long timestamp,
int timeToLive) |
BufferExpiringCell(CellName name,
java.nio.ByteBuffer value,
long timestamp,
int timeToLive,
int localExpirationTime) |
| Modifier and Type | Method and Description |
|---|---|
int |
cellDataSize() |
static Cell |
create(CellName name,
java.nio.ByteBuffer value,
long timestamp,
int timeToLive,
int localExpirationTime,
int expireBefore,
ColumnSerializer.Flag flag) |
boolean |
equals(Cell cell) |
int |
getLocalDeletionTime() |
java.lang.String |
getString(CellNameType comparator) |
int |
getTimeToLive() |
boolean |
isLive() |
boolean |
isLive(long now) |
ExpiringCell |
localCopy(CFMetaData metadata,
AbstractAllocator allocator) |
ExpiringCell |
localCopy(CFMetaData metadata,
MemtableAllocator allocator,
OpOrder.Group opGroup) |
Cell |
reconcile(Cell cell) |
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) |
name, timestamp, unsharedHeapSizeExcludingData, valuecreate, diff, diffCounter, equals, hashCode, onDiskIterator, reconcileCounter, validateNameclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdiff, name, unsharedHeapSizeExcludingData, valuetimestamppublic BufferExpiringCell(CellName name, java.nio.ByteBuffer value, long timestamp, int timeToLive)
public BufferExpiringCell(CellName name, java.nio.ByteBuffer value, long timestamp, int timeToLive, int localExpirationTime)
public int getTimeToLive()
getTimeToLive in interface ExpiringCellpublic Cell withUpdatedName(CellName newName)
withUpdatedName in interface CellwithUpdatedName in class BufferCellpublic Cell withUpdatedTimestamp(long newTimestamp)
withUpdatedTimestamp in interface CellwithUpdatedTimestamp in class BufferCellpublic int cellDataSize()
cellDataSize in interface CellcellDataSize in class AbstractCellpublic int serializedSize(CellNameType type, TypeSizes typeSizes)
serializedSize in interface CellserializedSize in class AbstractCellpublic void updateDigest(java.security.MessageDigest digest)
updateDigest in interface OnDiskAtomupdateDigest in class AbstractCellpublic int getLocalDeletionTime()
getLocalDeletionTime in interface OnDiskAtomgetLocalDeletionTime in class AbstractCellpublic ExpiringCell localCopy(CFMetaData metadata, AbstractAllocator allocator)
localCopy in interface CelllocalCopy in interface ExpiringCelllocalCopy in class BufferCellpublic ExpiringCell localCopy(CFMetaData metadata, MemtableAllocator allocator, OpOrder.Group opGroup)
localCopy in interface CelllocalCopy in interface ExpiringCelllocalCopy in class BufferCellpublic java.lang.String getString(CellNameType comparator)
getString in interface CellgetString in class AbstractCellpublic boolean isLive()
isLive in interface CellisLive in class AbstractCellpublic boolean isLive(long now)
isLive in interface CellisLive in class AbstractCellpublic int serializationFlags()
serializationFlags in interface CellserializationFlags in class AbstractCellpublic void validateFields(CFMetaData metadata) throws MarshalException
validateFields in interface OnDiskAtomvalidateFields in class AbstractCellMarshalExceptionpublic Cell reconcile(Cell cell)
reconcile in interface Cellreconcile in class AbstractCellpublic boolean equals(Cell cell)
equals in class AbstractCellpublic static Cell create(CellName name, java.nio.ByteBuffer value, long timestamp, int timeToLive, int localExpirationTime, int expireBefore, ColumnSerializer.Flag flag)
Copyright © 2015 The Apache Software Foundation