|
||||||||
| 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.Record
org.h2.store.Page
org.h2.index.PageBtree
org.h2.index.PageBtreeNode
public class PageBtreeNode
A b-tree node page that contains index data. Format:
| Field Summary |
|---|
| Fields inherited from class org.h2.index.PageBtree |
|---|
data, entryCount, index, offsets, onlyPosition, parentPageId, rows, start, written |
| Fields inherited from class org.h2.store.Page |
|---|
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 |
|---|
blockCount, cacheQueue, chained, next, previous |
| Method Summary | |
|---|---|
int |
getByteCount(DataPage dummy)
Get the number of bytes required for the data if the given data page would be used. |
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(PageBtreeIndex index,
Data data,
int pageId)
Read a b-tree node page. |
protected void |
remapChildren()
Update the parent id of all children. |
java.lang.String |
toString()
|
void |
write(DataPage buff)
Write the record to the data page. |
| Methods inherited from class org.h2.index.PageBtree |
|---|
getMemorySize, readAllRows |
| Methods inherited from class org.h2.store.Record |
|---|
canRemove, commit, getSessionId, getStorageId, isDeleted, isEmpty, isLogWritten, prepareWrite, setDeleted, setLastLog, setLogWritten, setSessionId, setStorageId |
| Methods inherited from class org.h2.util.CacheObject |
|---|
getBlockCount, getPos, isChanged, isPinned, setBlockCount, setChanged, setPos, sort |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Page read(PageBtreeIndex index, Data data, int pageId) throws java.sql.SQLException
index - the indexdata - the datapageId - the page id
java.sql.SQLException
protected void remapChildren()
throws java.sql.SQLException
PageBtree
java.sql.SQLExceptionpublic int getByteCount(DataPage dummy)
Record
getByteCount in class Recorddummy - the template data page
public void write(DataPage buff) throws java.sql.SQLException
Record
buff - the data page
java.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void moveTo(Session session, int newPos) throws java.sql.SQLException
Page
session - the sessionnewPos - the new position
java.sql.SQLException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||