Package org.h2.util

Class CacheHead

  • All Implemented Interfaces:
    java.lang.Comparable<CacheObject>

    public class CacheHead
    extends CacheObject
    The head element of the linked list.
    • Constructor Detail

      • CacheHead

        public CacheHead()
    • Method Detail

      • canRemove

        public boolean canRemove()
        Description copied from class: CacheObject
        Check if the object can be removed from the cache. For example pinned objects can not be removed.
        Specified by:
        canRemove in class CacheObject
        Returns:
        true if it can be removed
      • getMemory

        public int getMemory()
        Description copied from class: CacheObject
        Get the estimated used memory.
        Specified by:
        getMemory in class CacheObject
        Returns:
        number of words (one word is 4 bytes)