Class RowCacheKey

java.lang.Object
org.apache.cassandra.cache.CacheKey
org.apache.cassandra.cache.RowCacheKey
All Implemented Interfaces:
IMeasurableMemory

public final class RowCacheKey extends CacheKey
  • Field Details

    • key

      public final byte[] key
  • Constructor Details

  • Method Details

    • 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object