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, value
protected 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()
IColumn
public int serializedSize(TypeSizes typeSizes)
serializedSize
in interface OnDiskAtom
serializedSize
in class Column
public void updateDigest(java.security.MessageDigest digest)
updateDigest
in interface OnDiskAtom
updateDigest
in class Column
public IColumn localCopy(ColumnFamilyStore cfs)
IColumn
public IColumn localCopy(ColumnFamilyStore cfs, Allocator allocator)
IColumn
public java.lang.String getString(AbstractType<?> comparator)
public int serializationFlags()
serializationFlags
in interface IColumn
serializationFlags
in class Column
public void validateFields(CFMetaData metadata) throws MarshalException
validateFields
in interface IColumn
validateFields
in interface OnDiskAtom
validateFields
in class Column
MarshalException
public 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