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 booleancanRemove()Check if the object can be removed from the cache.intgetMemory()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: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)
-
-