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_TRUNK
cacheChained, 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, setPos
public void write()
Page
public static int getPagesAddressed(int pageSize)
pageSize
- the page sizepublic int getMemory()
getMemory
in class CacheObject
public void moveTo(Session session, int newPos)
Page
public boolean canRemove()
CacheObject
canRemove
in class CacheObject
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.