public final class CounterCacheKey extends CacheKey
ksAndCFName
Constructor and Description |
---|
CounterCacheKey(Pair<java.lang.String,java.lang.String> ksAndCFName,
byte[] partitionKey,
byte[] cellName) |
Modifier and Type | Method and Description |
---|---|
static CounterCacheKey |
create(Pair<java.lang.String,java.lang.String> ksAndCFName,
java.nio.ByteBuffer partitionKey,
Clustering clustering,
ColumnDefinition c,
CellPath path) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.nio.ByteBuffer |
partitionKey() |
static CounterCacheKey |
read(Pair<java.lang.String,java.lang.String> ksAndCFName,
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 CounterCacheKey(Pair<java.lang.String,java.lang.String> ksAndCFName, byte[] partitionKey, byte[] cellName)
public static CounterCacheKey create(Pair<java.lang.String,java.lang.String> ksAndCFName, java.nio.ByteBuffer partitionKey, Clustering clustering, ColumnDefinition 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.IOException
public static CounterCacheKey read(Pair<java.lang.String,java.lang.String> ksAndCFName, DataInputPlus in) throws java.io.IOException
java.io.IOException
public long unsharedHeapSize()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Copyright © 2018 The Apache Software Foundation