|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.util.CacheObject
org.h2.store.Page
org.h2.store.PageStreamTrunk
public class PageStreamTrunk
A trunk page of a stream. It contains the page numbers of the stream, and the page number of the next trunk. The format is:
| Field Summary |
|---|
| Fields inherited from class org.h2.store.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 |
| Fields inherited from class org.h2.util.CacheObject |
|---|
cacheChained, cacheNext, cachePrevious |
| Method Summary | |
|---|---|
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. |
int |
getNextTrunk()
|
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. |
java.lang.String |
toString()
|
void |
write()
Write the page. |
| Methods inherited from class org.h2.store.Page |
|---|
add, insert, insert, insert, remove, remove, remove |
| Methods inherited from class org.h2.util.CacheObject |
|---|
compareTo, getPos, isChanged, isStream, setChanged, setPos |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void write()
Page
write in class Pagepublic int getMemory()
getMemory in class CacheObject
public void moveTo(Session session,
int newPos)
Page
moveTo in class Pagesession - the sessionnewPos - the new positionpublic int getNextTrunk()
public boolean canRemove()
CacheObject
canRemove in class CacheObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean canMove()
Page
canMove in class Page
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||