Package org.h2.util
Class CacheHead
- java.lang.Object
-
- org.h2.util.CacheObject
-
- org.h2.util.CacheHead
-
- All Implemented Interfaces:
java.lang.Comparable<CacheObject>
public class CacheHead extends CacheObject
The head element of the linked list.
-
-
Field Summary
-
Fields inherited from class org.h2.util.CacheObject
cacheChained, cacheNext, cachePrevious
-
-
Constructor Summary
Constructors Constructor Description CacheHead()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRemove()
Check if the object can be removed from the cache.int
getMemory()
Get the estimated used memory.-
Methods inherited from class org.h2.util.CacheObject
compareTo, getPos, isChanged, isStream, setChanged, setPos
-
-
-
-
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 classCacheObject
- 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 classCacheObject
- Returns:
- number of words (one word is 4 bytes)
-
-