public final class CounterCacheKey extends CacheKey
| Modifier and Type | Method and Description |
|---|---|
static CounterCacheKey |
create(TableMetadata tableMetadata,
java.nio.ByteBuffer partitionKey,
Clustering<?> clustering,
ColumnMetadata c,
CellPath path) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.nio.ByteBuffer |
partitionKey() |
static CounterCacheKey |
read(TableMetadata tableMetadata,
DataInputPlus in) |
java.nio.ByteBuffer |
readCounterValue(ColumnFamilyStore cfs)
Reads the value of the counter represented by this key.
|
java.lang.String |
toString() |
long |
unsharedHeapSize() |
void |
write(DataOutputPlus out) |
public static CounterCacheKey create(TableMetadata tableMetadata, java.nio.ByteBuffer partitionKey, Clustering<?> clustering, ColumnMetadata c, CellPath path)
public java.nio.ByteBuffer partitionKey()
public java.nio.ByteBuffer readCounterValue(ColumnFamilyStore cfs)
cfs - the store for the table this is a key of.null if there
is not such counter.public void write(DataOutputPlus out) throws java.io.IOException
java.io.IOExceptionpublic static CounterCacheKey read(TableMetadata tableMetadata, DataInputPlus in) throws java.io.IOException
java.io.IOExceptionpublic long unsharedHeapSize()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.ObjectCopyright © 2009-2022 The Apache Software Foundation