Package org.apache.cassandra.cache
Class CounterCacheKey
java.lang.Object
org.apache.cassandra.cache.CacheKey
org.apache.cassandra.cache.CounterCacheKey
- All Implemented Interfaces:
IMeasurableMemory
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CounterCacheKeycreate(TableMetadata tableMetadata, ByteBuffer partitionKey, Clustering<?> clustering, ColumnMetadata c, CellPath path) booleaninthashCode()static CounterCacheKeyread(TableMetadata tableMetadata, DataInputPlus in) Reads the value of the counter represented by this key.toString()longvoidwrite(DataOutputPlus out)
-
Method Details
-
create
public static CounterCacheKey create(TableMetadata tableMetadata, ByteBuffer partitionKey, Clustering<?> clustering, ColumnMetadata c, CellPath path) -
partitionKey
-
readCounterValue
Reads the value of the counter represented by this key.- Parameters:
cfs- the store for the table this is a key of.- Returns:
- the value for the counter represented by this key, or
nullif there is not such counter.
-
write
- Throws:
IOException
-
read
public static CounterCacheKey read(TableMetadata tableMetadata, DataInputPlus in) throws IOException - Throws:
IOException
-
toString
-
hashCode
public int hashCode() -
equals
-