public class CounterCell extends Cell
OnDiskAtom.Serializer
Modifier and Type | Field and Description |
---|---|
protected static CounterContext |
contextManager |
MAX_NAME_LENGTH, name, timestamp, value
Constructor and Description |
---|
CounterCell(CellName name,
java.nio.ByteBuffer value,
long timestamp) |
CounterCell(CellName name,
java.nio.ByteBuffer value,
long timestamp,
long timestampOfLastDelete) |
Modifier and Type | Method and Description |
---|---|
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) |
int |
dataSize() |
Cell |
diff(Cell cell) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getString(CellNameType comparator) |
int |
hashCode() |
Cell |
localCopy(ColumnFamilyStore cfs,
AbstractAllocator allocator) |
Cell |
markLocalToBeCleared() |
Cell |
reconcile(Cell cell,
AbstractAllocator allocator) |
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) |
create, excessHeapSizeExcludingData, getLocalDeletionTime, getMarkedForDeleteAt, hasIrrelevantData, isLive, isMarkedForDelete, maxTimestamp, minTimestamp, name, onDiskIterator, reconcile, timestamp, validateName, value, withUpdatedTimestamp
protected static final CounterContext contextManager
public CounterCell(CellName name, java.nio.ByteBuffer value, long timestamp)
public CounterCell(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 class Cell
public long timestampOfLastDelete()
public long total()
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 Cell reconcile(Cell cell, AbstractAllocator allocator)
public Cell localCopy(ColumnFamilyStore cfs, AbstractAllocator allocator)
public java.lang.String getString(CellNameType comparator)
public int serializationFlags()
serializationFlags
in class Cell
public void validateFields(CFMetaData metadata) throws MarshalException
validateFields
in interface OnDiskAtom
validateFields
in class Cell
MarshalException
public Cell markLocalToBeCleared()
Copyright © 2014 The Apache Software Foundation