org.apache.cassandra.cache
Class RowCacheKey

java.lang.Object
  extended by org.apache.cassandra.cache.RowCacheKey
All Implemented Interfaces:
java.lang.Comparable<RowCacheKey>, CacheKey

public class RowCacheKey
extends java.lang.Object
implements CacheKey, java.lang.Comparable<RowCacheKey>


Field Summary
 int cfId
           
 java.nio.ByteBuffer key
           
 
Constructor Summary
RowCacheKey(int cfId, DecoratedKey key)
           
 
Method Summary
 int compareTo(RowCacheKey otherKey)
           
 boolean equals(java.lang.Object obj)
           
 Pair<java.lang.String,java.lang.String> getPathInfo()
           
 int hashCode()
           
 int serializedSize()
           
 java.nio.ByteBuffer serializeForStorage()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cfId

public final int cfId

key

public final java.nio.ByteBuffer key
Constructor Detail

RowCacheKey

public RowCacheKey(int cfId,
                   DecoratedKey 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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(RowCacheKey otherKey)
Specified by:
compareTo in interface java.lang.Comparable<RowCacheKey>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 The Apache Software Foundation