|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.util.CacheObject
public abstract class CacheObject
The base object for all cached objects.
Field Summary | |
---|---|
CacheObject |
cacheChained
The next element in the hash chain. |
CacheObject |
cacheNext
The next element in the LRU linked list. |
CacheObject |
cachePrevious
The previous element in the LRU linked list. |
Constructor Summary | |
---|---|
CacheObject()
|
Method Summary | |
---|---|
abstract boolean |
canRemove()
Check if the object can be removed from the cache. |
int |
compareTo(CacheObject other)
|
abstract int |
getMemory()
Get the estimated used memory. |
int |
getPos()
|
boolean |
isChanged()
Check if this cache object has been changed and thus needs to be written back to the storage. |
void |
setChanged(boolean b)
|
void |
setPos(int pos)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public CacheObject cachePrevious
public CacheObject cacheNext
public CacheObject cacheChained
Constructor Detail |
---|
public CacheObject()
Method Detail |
---|
public abstract boolean canRemove()
public abstract int getMemory()
public void setPos(int pos)
public int getPos()
public boolean isChanged()
public void setChanged(boolean b)
public int compareTo(CacheObject other)
compareTo
in interface java.lang.Comparable<CacheObject>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |