PageBtreeLeaf
A b-tree leaf page that contains index data. Format:
- page type: byte
- checksum: short
- parent page id (0 for root): int
- index id: varInt
- entry count: short
- list of offsets: short
- data (key: varLong, value,...)
| Methods |
| static PageBtreeLeaf |
create(PageBtreeIndex index, int pageId, int parentPageId)
Create a new page.
|
| static PageBtreeLeaf |
create(PageBtreeIndex index, int pageId, int parentPageId)
Create a new page.
Parameters:
index - the index
pageId - the page id
parentPageId - the parent
Returns:
the page
|
| static Page |
read(PageBtreeIndex index, Data data, int pageId)
Read a b-tree leaf page.
|
| static Page |
read(PageBtreeIndex index, Data data, int pageId)
Read a b-tree leaf page.
Parameters:
index - the index
data - the data
pageId - the page id
Returns:
the page
|
| int |
addRowTry(SearchRow row)
|
| int |
addRowTry(SearchRow row)
|
| void |
find(PageBtreeCursor cursor, SearchRow first, boolean bigger)
|
| void |
find(PageBtreeCursor cursor, SearchRow first, boolean bigger)
|
| void |
freeRecursive()
|
| void |
freeRecursive()
|
| int |
getEntryCount()
|
| int |
getEntryCount()
|
| PageBtreeLeaf |
getFirstLeaf()
|
| PageBtreeLeaf |
getFirstLeaf()
|
| PageBtreeLeaf |
getLastLeaf()
|
| PageBtreeLeaf |
getLastLeaf()
|
| int |
getRowCount()
|
| int |
getRowCount()
|
| void |
last(PageBtreeCursor cursor)
|
| void |
last(PageBtreeCursor cursor)
|
| void |
memoryChange()
|
| void |
memoryChange()
|
| void |
moveTo(Session session, int newPos)
|
| void |
moveTo(Session session, int newPos)
|
| void |
nextPage(PageBtreeCursor cursor)
Set the cursor to the first row of the next page.
|
| void |
nextPage(PageBtreeCursor cursor)
Set the cursor to the first row of the next page.
Parameters:
cursor - the cursor
|
| void |
previousPage(PageBtreeCursor cursor)
Set the cursor to the last row of the previous page.
|
| void |
previousPage(PageBtreeCursor cursor)
Set the cursor to the last row of the previous page.
Parameters:
cursor - the cursor
|
| void |
remapChildren()
|
| void |
remapChildren()
|
| SearchRow |
remove(SearchRow row)
|
| SearchRow |
remove(SearchRow row)
|
| void |
setRowCountStored(int rowCount)
|
| void |
setRowCountStored(int rowCount)
|
| PageBtree |
split(int splitPoint)
|
| PageBtree |
split(int splitPoint)
|
| String |
toString()
|
| String |
toString()
|
| void |
write()
|
| void |
write()
|
|