public class BufferCounterUpdateCell extends BufferCell implements CounterUpdateCell
OnDiskAtom.Serializer, OnDiskAtom.SerializerForWriting
name, timestamp, value
MAX_NAME_LENGTH
Constructor and Description |
---|
BufferCounterUpdateCell(CellName name,
java.nio.ByteBuffer value,
long timestamp) |
BufferCounterUpdateCell(CellName name,
long value,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
long |
delta() |
Cell |
diff(Cell cell) |
java.lang.String |
getString(CellNameType comparator) |
Cell |
localCopy(CFMetaData metadata,
AbstractAllocator allocator) |
Cell |
localCopy(CFMetaData metadata,
MemtableAllocator allocator,
OpOrder.Group opGroup) |
Cell |
reconcile(Cell cell) |
int |
serializationFlags() |
Cell |
withUpdatedName(CellName newName) |
name, timestamp, unsharedHeapSizeExcludingData, value, withUpdatedTimestamp, withUpdatedTimestampAndLocalDeletionTime
cellDataSize, create, diffCounter, equals, equals, getLocalDeletionTime, hashCode, isLive, isLive, onDiskIterator, reconcileCounter, serializedSize, updateDigest, validateFields, validateName
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
cellDataSize, isLive, isLive, name, serializedSize, unsharedHeapSizeExcludingData, value, withUpdatedTimestamp, withUpdatedTimestampAndLocalDeletionTime
getLocalDeletionTime, timestamp, updateDigest, validateFields
public BufferCounterUpdateCell(CellName name, long value, long timestamp)
public BufferCounterUpdateCell(CellName name, java.nio.ByteBuffer value, long timestamp)
public Cell withUpdatedName(CellName newName)
withUpdatedName
in interface Cell
withUpdatedName
in class BufferCell
public long delta()
delta
in interface CounterUpdateCell
public Cell diff(Cell cell)
diff
in interface Cell
diff
in class AbstractCell
public Cell reconcile(Cell cell)
reconcile
in interface Cell
reconcile
in class AbstractCell
public int serializationFlags()
serializationFlags
in interface Cell
serializationFlags
in class AbstractCell
public Cell localCopy(CFMetaData metadata, AbstractAllocator allocator)
localCopy
in interface Cell
localCopy
in class BufferCell
public Cell localCopy(CFMetaData metadata, MemtableAllocator allocator, OpOrder.Group opGroup)
localCopy
in interface Cell
localCopy
in class BufferCell
public java.lang.String getString(CellNameType comparator)
getString
in interface Cell
getString
in class AbstractCell
Copyright © 2019 The Apache Software Foundation