public class CounterColumn extends Column
OnDiskAtom.Serializer| Modifier and Type | Field and Description |
|---|---|
protected static CounterContext |
contextManager |
MAX_NAME_LENGTH, name, serializer, timestamp, value| Constructor and Description |
|---|
CounterColumn(java.nio.ByteBuffer name,
java.nio.ByteBuffer value,
long timestamp) |
CounterColumn(java.nio.ByteBuffer name,
java.nio.ByteBuffer value,
long timestamp,
long timestampOfLastDelete) |
CounterColumn(java.nio.ByteBuffer name,
long value,
long timestamp) |
CounterColumn(java.nio.ByteBuffer name,
long value,
long timestamp,
long timestampOfLastDelete) |
| Modifier and Type | Method and Description |
|---|---|
static CounterColumn |
create(java.nio.ByteBuffer name,
java.nio.ByteBuffer value,
long timestamp,
long timestampOfLastDelete,
ColumnSerializer.Flag flag) |
int |
dataSize() |
Column |
diff(Column column) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getString(AbstractType<?> comparator) |
boolean |
hasCounterId(CounterId id)
Check if a given counterId is found in this CounterColumn context.
|
int |
hashCode() |
Column |
localCopy(ColumnFamilyStore cfs) |
Column |
localCopy(ColumnFamilyStore cfs,
Allocator allocator) |
Column |
markLocalToBeCleared() |
Column |
reconcile(Column column,
Allocator allocator) |
int |
serializationFlags() |
int |
serializedSize(TypeSizes typeSizes) |
long |
timestampOfLastDelete() |
long |
total() |
void |
updateDigest(java.security.MessageDigest digest) |
void |
validateFields(CFMetaData metadata) |
Column |
withUpdatedName(java.nio.ByteBuffer newName) |
create, create, create, create, create, create, create, getLocalDeletionTime, getMarkedForDeleteAt, hasIrrelevantData, isLive, isMarkedForDelete, maxTimestamp, minTimestamp, name, onDiskIterator, onDiskSerializer, reconcile, serializedSizeForSSTable, timestamp, validateName, value, withUpdatedTimestampprotected static final CounterContext contextManager
public CounterColumn(java.nio.ByteBuffer name,
long value,
long timestamp)
public CounterColumn(java.nio.ByteBuffer name,
long value,
long timestamp,
long timestampOfLastDelete)
public CounterColumn(java.nio.ByteBuffer name,
java.nio.ByteBuffer value,
long timestamp)
public CounterColumn(java.nio.ByteBuffer name,
java.nio.ByteBuffer value,
long timestamp,
long timestampOfLastDelete)
public static CounterColumn create(java.nio.ByteBuffer name, java.nio.ByteBuffer value, long timestamp, long timestampOfLastDelete, ColumnSerializer.Flag flag)
public Column withUpdatedName(java.nio.ByteBuffer newName)
withUpdatedName in class Columnpublic long timestampOfLastDelete()
public long total()
public int serializedSize(TypeSizes typeSizes)
serializedSize in interface OnDiskAtomserializedSize in class Columnpublic void updateDigest(java.security.MessageDigest digest)
updateDigest in interface OnDiskAtomupdateDigest in class Columnpublic Column localCopy(ColumnFamilyStore cfs)
public Column localCopy(ColumnFamilyStore cfs, Allocator allocator)
public java.lang.String getString(AbstractType<?> comparator)
public int serializationFlags()
serializationFlags in class Columnpublic void validateFields(CFMetaData metadata) throws MarshalException
validateFields in interface OnDiskAtomvalidateFields in class ColumnMarshalExceptionpublic boolean hasCounterId(CounterId id)
public Column markLocalToBeCleared()
Copyright © 2015 The Apache Software Foundation