public class BufferCounterCell extends BufferCell implements CounterCell
OnDiskAtom.Serializer
name, timestamp, value
contextManager
MAX_NAME_LENGTH
Constructor and Description |
---|
BufferCounterCell(CellName name,
java.nio.ByteBuffer value,
long timestamp) |
BufferCounterCell(CellName name,
java.nio.ByteBuffer value,
long timestamp,
long timestampOfLastDelete) |
Modifier and Type | Method and Description |
---|---|
int |
cellDataSize() |
static CounterCell |
create(CellName name,
java.nio.ByteBuffer value,
long timestamp,
long timestampOfLastDelete,
ColumnSerializer.Flag flag) |
static CounterCell |
createLocal(CellName name,
long value,
long timestamp,
long timestampOfLastDelete) |
Cell |
diff(Cell cell) |
boolean |
equals(Cell cell) |
java.lang.String |
getString(CellNameType comparator) |
boolean |
hasLegacyShards() |
CounterCell |
localCopy(CFMetaData metadata,
AbstractAllocator allocator) |
CounterCell |
localCopy(CFMetaData metadata,
MemtableAllocator allocator,
OpOrder.Group opGroup) |
Cell |
markLocalToBeCleared() |
Cell |
reconcile(Cell cell) |
int |
serializationFlags() |
int |
serializedSize(CellNameType type,
TypeSizes typeSizes) |
long |
timestampOfLastDelete() |
long |
total() |
void |
updateDigest(java.security.MessageDigest digest) |
void |
validateFields(CFMetaData metadata) |
Cell |
withUpdatedName(CellName newName) |
name, timestamp, unsharedHeapSizeExcludingData, value, withUpdatedTimestamp
create, diffCounter, equals, getLocalDeletionTime, hashCode, isLive, isLive, onDiskIterator, reconcileCounter, validateName
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isLive, isLive, name, unsharedHeapSizeExcludingData, value, withUpdatedTimestamp
getLocalDeletionTime, timestamp
public BufferCounterCell(CellName name, java.nio.ByteBuffer value, long timestamp)
public BufferCounterCell(CellName name, java.nio.ByteBuffer value, long timestamp, long timestampOfLastDelete)
public static CounterCell create(CellName name, java.nio.ByteBuffer value, long timestamp, long timestampOfLastDelete, ColumnSerializer.Flag flag)
public static CounterCell createLocal(CellName name, long value, long timestamp, long timestampOfLastDelete)
public Cell withUpdatedName(CellName newName)
withUpdatedName
in interface Cell
withUpdatedName
in class BufferCell
public long timestampOfLastDelete()
timestampOfLastDelete
in interface CounterCell
public long total()
total
in interface CounterCell
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 Cell diff(Cell cell)
diff
in interface Cell
diff
in class AbstractCell
public void updateDigest(java.security.MessageDigest digest)
updateDigest
in interface OnDiskAtom
updateDigest
in class AbstractCell
public Cell reconcile(Cell cell)
reconcile
in interface Cell
reconcile
in class AbstractCell
public boolean hasLegacyShards()
hasLegacyShards
in interface CounterCell
public CounterCell localCopy(CFMetaData metadata, AbstractAllocator allocator)
localCopy
in interface Cell
localCopy
in interface CounterCell
localCopy
in class BufferCell
public CounterCell localCopy(CFMetaData metadata, MemtableAllocator allocator, OpOrder.Group opGroup)
localCopy
in interface Cell
localCopy
in interface CounterCell
localCopy
in class BufferCell
public java.lang.String getString(CellNameType comparator)
getString
in interface Cell
getString
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 markLocalToBeCleared()
markLocalToBeCleared
in interface CounterCell
public boolean equals(Cell cell)
equals
in class AbstractCell
Copyright © 2015 The Apache Software Foundation