org.apache.cassandra.cache
Class KeyCacheKey

java.lang.Object
  extended by org.apache.cassandra.utils.Pair<Descriptor,java.nio.ByteBuffer>
      extended by org.apache.cassandra.cache.KeyCacheKey
All Implemented Interfaces:
CacheKey

public class KeyCacheKey
extends Pair<Descriptor,java.nio.ByteBuffer>
implements CacheKey


Field Summary
 
Fields inherited from class org.apache.cassandra.utils.Pair
left, right
 
Constructor Summary
KeyCacheKey(Descriptor desc, java.nio.ByteBuffer key)
           
 
Method Summary
 Pair<java.lang.String,java.lang.String> getPathInfo()
           
 int serializedSize()
           
 java.nio.ByteBuffer serializeForStorage()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.cassandra.utils.Pair
create, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyCacheKey

public KeyCacheKey(Descriptor desc,
                   java.nio.ByteBuffer key)
Method Detail

serializeForStorage

public java.nio.ByteBuffer serializeForStorage()
Specified by:
serializeForStorage in interface CacheKey
Returns:
Serialized part of the key which should be persisted

getPathInfo

public Pair<java.lang.String,java.lang.String> getPathInfo()
Specified by:
getPathInfo in interface CacheKey
Returns:
The keyspace and ColumnFamily names to which this key belongs

serializedSize

public int serializedSize()
Specified by:
serializedSize in interface CacheKey
Returns:
The size of the serialized key

toString

public java.lang.String toString()
Overrides:
toString in class Pair<Descriptor,java.nio.ByteBuffer>


Copyright © 2012 The Apache Software Foundation