Package org.apache.cassandra.cache
Class KeyCacheKey
- java.lang.Object
-
- org.apache.cassandra.cache.CacheKey
-
- org.apache.cassandra.cache.KeyCacheKey
-
- All Implemented Interfaces:
IMeasurableMemory
public class KeyCacheKey extends CacheKey
-
-
Constructor Summary
Constructors Constructor Description KeyCacheKey(TableMetadata tableMetadata, Descriptor desc, java.nio.ByteBuffer key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()java.lang.StringtoString()longunsharedHeapSize()
-
-
-
Field Detail
-
desc
public final Descriptor desc
-
key
public final byte[] key
-
-
Constructor Detail
-
KeyCacheKey
public KeyCacheKey(TableMetadata tableMetadata, Descriptor desc, java.nio.ByteBuffer key)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
unsharedHeapSize
public long unsharedHeapSize()
- Returns:
- the amount of on-heap memory retained by the object that might be reclaimed if the object were reclaimed, i.e. it should try to exclude globally cached data where possible, or counting portions of arrays that are referenced by the object but used by other objects only (e.g. slabbed byte-buffers), etc.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-