public class PageBtreeNode extends PageBtree
data, entryCount, index, memoryEstimated, offsets, onlyPosition, parentPageId, rows, start, written
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 |
---|---|
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.
|
String |
toString() |
void |
write()
Write the page.
|
canRemove, getMemory, memoryChange, readAllRows
add, canMove, insert, insert, insert, remove, remove, remove
compareTo, getPos, isChanged, isStream, setChanged, setPos
public static Page read(PageBtreeIndex index, Data data, int pageId)
index
- the indexdata
- the datapageId
- the page idprotected void remapChildren()
PageBtree
public void write()
Page
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.