Package org.h2.util
Class CacheHead
java.lang.Object
org.h2.util.CacheObject
org.h2.util.CacheHead
- All Implemented Interfaces:
Comparable<CacheObject>
The head element of the linked list.
-
Field Summary
Fields inherited from class org.h2.util.CacheObject
cacheChained, cacheNext, cachePrevious -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.h2.util.CacheObject
compareTo, getPos, isChanged, isStream, setChanged, setPos
-
Constructor Details
-
CacheHead
public CacheHead()
-
-
Method Details
-
canRemove
public boolean canRemove()Description copied from class:CacheObjectCheck if the object can be removed from the cache. For example pinned objects can not be removed.- Specified by:
canRemovein classCacheObject- Returns:
- true if it can be removed
-
getMemory
public int getMemory()Description copied from class:CacheObjectGet the estimated used memory.- Specified by:
getMemoryin classCacheObject- Returns:
- number of words (one word is 4 bytes)
-