|
||||||||||
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.index.PageDataLeaf
public class PageDataLeaf
A leaf page that contains data of one or multiple rows. Format:
Field Summary | |
---|---|
protected Data |
data
The data page. |
protected int |
entryCount
The number of entries. |
protected PageDataIndex |
index
The index. |
protected long[] |
keys
The row keys. |
protected int |
memoryEstimated
The estimated memory used by this object. |
protected int |
parentPageId
The page number of the parent. |
protected boolean |
written
Whether the data page is up-to-date. |
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 |
canRemove()
Check if the object can be removed from the cache. |
int |
getMemory()
Get the estimated memory size. |
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. |
static Page |
read(PageDataIndex index,
Data data,
int pageId)
Read a data leaf page. |
protected void |
remapChildren(int old)
Update the parent id of all children. |
java.lang.String |
toString()
|
void |
write()
Write the page. |
Methods inherited from class org.h2.store.Page |
---|
add, canMove, insert, insert, insert, remove, remove, remove |
Methods inherited from class org.h2.util.CacheObject |
---|
compareTo, getPos, isChanged, setChanged, setPos |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final PageDataIndex index
protected int parentPageId
protected final Data data
protected int entryCount
protected long[] keys
protected boolean written
protected int memoryEstimated
Method Detail |
---|
public static Page read(PageDataIndex index, Data data, int pageId)
index
- the indexdata
- the datapageId
- the page id
protected void remapChildren(int old)
old
- the previous positionpublic void write()
Page
write
in class Page
public java.lang.String toString()
toString
in class java.lang.Object
public void moveTo(Session session, int newPos)
Page
moveTo
in class Page
session
- the sessionnewPos
- the new positionpublic int getMemory()
getMemory
in class CacheObject
public boolean canRemove()
CacheObject
canRemove
in class CacheObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |