|
||||||||
| 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 | |
|---|---|
protected int |
blockCount
The number of blocks occupied by this object. |
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. |
int |
cacheQueue
The cache queue identifier. |
| Constructor Summary | |
|---|---|
CacheObject()
|
|
| Method Summary | |
|---|---|
abstract boolean |
canRemove()
Check if the object can be removed from the cache. |
int |
getBlockCount()
|
int |
getMemorySize()
Get the estimated memory size. |
int |
getPos()
|
boolean |
isChanged()
Check if this cache object has been changed and thus needs to be written back to the storage. |
boolean |
isPinned()
Check if this cache object can be removed from the cache. |
void |
setBlockCount(int size)
|
void |
setChanged(boolean b)
|
void |
setPos(int pos)
|
static void |
sort(ObjectArray<CacheObject> recordList)
Order the given list of cache objects by position. |
| 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
public int cacheQueue
protected int blockCount
| Constructor Detail |
|---|
public CacheObject()
| Method Detail |
|---|
public abstract boolean canRemove()
public static void sort(ObjectArray<CacheObject> recordList)
recordList - the list of cache objectspublic void setBlockCount(int size)
public int getBlockCount()
public void setPos(int pos)
public int getPos()
public boolean isChanged()
public void setChanged(boolean b)
public boolean isPinned()
public int getMemorySize()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||