public class BufferExpiringCell extends BufferCell implements ExpiringCell
OnDiskAtom.Serializer
name, timestamp, value
MAX_TTL
MAX_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) |
boolean |
equals(ExpiringCell 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, value
create, diff, diffCounter, equals, hashCode, onDiskIterator, reconcileCounter, validateName
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
diff, name, unsharedHeapSizeExcludingData, value
timestamp
public 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 ExpiringCell
public Cell withUpdatedName(CellName newName)
withUpdatedName
in interface Cell
withUpdatedName
in class BufferCell
public Cell withUpdatedTimestamp(long newTimestamp)
withUpdatedTimestamp
in interface Cell
withUpdatedTimestamp
in class BufferCell
public int cellDataSize()
cellDataSize
in interface Cell
cellDataSize
in class AbstractCell
public int serializedSize(CellNameType type, TypeSizes typeSizes)
serializedSize
in interface Cell
serializedSize
in class AbstractCell
public void updateDigest(java.security.MessageDigest digest)
updateDigest
in interface OnDiskAtom
updateDigest
in class AbstractCell
public int getLocalDeletionTime()
getLocalDeletionTime
in interface OnDiskAtom
getLocalDeletionTime
in class AbstractCell
public ExpiringCell localCopy(CFMetaData metadata, AbstractAllocator allocator)
localCopy
in interface Cell
localCopy
in interface ExpiringCell
localCopy
in class BufferCell
public ExpiringCell localCopy(CFMetaData metadata, MemtableAllocator allocator, OpOrder.Group opGroup)
localCopy
in interface Cell
localCopy
in interface ExpiringCell
localCopy
in class BufferCell
public java.lang.String getString(CellNameType comparator)
getString
in interface Cell
getString
in class AbstractCell
public boolean isLive()
isLive
in interface Cell
isLive
in class AbstractCell
public boolean isLive(long now)
isLive
in interface Cell
isLive
in class AbstractCell
public int serializationFlags()
serializationFlags
in interface Cell
serializationFlags
in class AbstractCell
public void validateFields(CFMetaData metadata) throws MarshalException
validateFields
in interface OnDiskAtom
validateFields
in class AbstractCell
MarshalException
public Cell reconcile(Cell cell)
reconcile
in interface Cell
reconcile
in class AbstractCell
public boolean equals(Cell cell)
equals
in class AbstractCell
public boolean equals(ExpiringCell cell)
public 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