public class PageFreeList extends Page
changeCount, FLAG_LAST, TYPE_BTREE_LEAF, TYPE_BTREE_NODE, TYPE_DATA_LEAF, TYPE_DATA_NODE, TYPE_DATA_OVERFLOW, TYPE_EMPTY, TYPE_FREE_LIST, TYPE_STREAM_DATA, TYPE_STREAM_TRUNKcacheChained, cacheNext, cachePrevious| Modifier and Type | Method and Description |
|---|---|
boolean |
canMove()
If this page can be moved.
|
boolean |
canRemove()
Check if the object can be removed from the cache.
|
int |
getMemory()
Get the estimated memory size.
|
static int |
getPagesAddressed(int pageSize)
Get the number of pages that can fit in a free list.
|
void |
moveTo(Session session,
int newPos)
Copy the data to a new location, change the parent to point to the new
location, and free up the current page.
|
String |
toString() |
void |
write()
Write the page.
|
compareTo, getPos, isChanged, isStream, setChanged, setPospublic void write()
Pagepublic static int getPagesAddressed(int pageSize)
pageSize - the page sizepublic int getMemory()
getMemory in class CacheObjectpublic void moveTo(Session session, int newPos)
Pagepublic boolean canRemove()
CacheObjectcanRemove in class CacheObjectCopyright © 2012 JBoss by Red Hat. All Rights Reserved.