public class CounterColumn extends Column
OnDiskAtom.Serializer| Modifier and Type | Field and Description |
|---|---|
protected static CounterContext |
contextManager |
MAX_NAME_LENGTH| 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,
IColumnSerializer.Flag flag) |
int |
dataSize()
the size of user-provided data, not including internal overhead
|
IColumn |
diff(IColumn 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() |
IColumn |
localCopy(ColumnFamilyStore cfs)
clones the column for the row cache, interning column names and making copies of other underlying byte buffers
|
IColumn |
localCopy(ColumnFamilyStore cfs,
Allocator allocator)
clones the column for the memtable, interning column names and making copies of other underlying byte buffers.
|
IColumn |
markDeltaToBeCleared() |
static void |
mergeAndRemoveOldShards(DecoratedKey key,
ColumnFamily cf,
int gcBefore,
int mergeBefore) |
static void |
mergeAndRemoveOldShards(DecoratedKey key,
ColumnFamily cf,
int gcBefore,
int mergeBefore,
boolean sendToOtherReplica)
There is two phase to the removal of old shards.
|
IColumn |
reconcile(IColumn column,
Allocator allocator) |
int |
serializationFlags() |
int |
serializedSize(TypeSizes typeSizes) |
long |
timestampOfLastDelete() |
long |
total() |
void |
updateDigest(java.security.MessageDigest digest) |
void |
validateFields(CFMetaData metadata) |
addColumn, addColumn, create, create, create, create, create, create, getLocalDeletionTime, getMarkedForDeleteAt, getSubColumn, getSubColumns, hasIrrelevantData, isLive, isMarkedForDelete, maxTimestamp, minTimestamp, mostRecentLiveChangeAt, mostRecentNonGCableChangeAt, name, onDiskSerializer, reconcile, serializedSizeForSSTable, serializer, timestamp, validateName, valueprotected 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, IColumnSerializer.Flag flag)
public long timestampOfLastDelete()
public long total()
public int dataSize()
IColumnpublic int serializedSize(TypeSizes typeSizes)
serializedSize in interface OnDiskAtomserializedSize in class Columnpublic void updateDigest(java.security.MessageDigest digest)
updateDigest in interface OnDiskAtomupdateDigest in class Columnpublic IColumn localCopy(ColumnFamilyStore cfs)
IColumnpublic IColumn localCopy(ColumnFamilyStore cfs, Allocator allocator)
IColumnpublic java.lang.String getString(AbstractType<?> comparator)
public int serializationFlags()
serializationFlags in interface IColumnserializationFlags in class Columnpublic void validateFields(CFMetaData metadata) throws MarshalException
validateFields in interface IColumnvalidateFields in interface OnDiskAtomvalidateFields in class ColumnMarshalExceptionpublic boolean hasCounterId(CounterId id)
public static void mergeAndRemoveOldShards(DecoratedKey key, ColumnFamily cf, int gcBefore, int mergeBefore)
public static void mergeAndRemoveOldShards(DecoratedKey key, ColumnFamily cf, int gcBefore, int mergeBefore, boolean sendToOtherReplica)
public IColumn markDeltaToBeCleared()
Copyright © 2014 The Apache Software Foundation