PageDataLeaf
A leaf page that contains data of one or multiple rows. Format:
- page type: byte (0)
- checksum: short (1-2)
- parent page id (0 for root): int (3-6)
- table id: varInt
- column count: varInt
- entry count: short
- with overflow: the first overflow page id: int
- list of key / offset pairs (key: varLong, offset: shortInt)
- data
| Methods |
| static PageDataLeaf |
create(PageDataIndex index, int pageId, int parentPageId)
Create a new page.
|
| static PageDataLeaf |
create(PageDataIndex 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(PageDataIndex index, Data data, int pageId)
Read a data leaf page.
|
| static Page |
read(PageDataIndex index, Data data, int pageId)
Read a data leaf page.
Parameters:
index - the index
data - the data
pageId - the page id
Returns:
the page
|
| int |
addRowTry(Row row)
|
| int |
addRowTry(Row row)
|
| Cursor |
find(Session session, long minKey, long maxKey, boolean multiVersion)
|
| Cursor |
find(Session session, long minKey, long maxKey, boolean multiVersion)
|
| void |
freeRecursive()
|
| void |
freeRecursive()
|
| long |
getDiskSpaceUsed()
|
| long |
getDiskSpaceUsed()
|
| int |
getEntryCount()
|
| int |
getEntryCount()
|
| PageDataLeaf |
getFirstLeaf()
|
| PageDataLeaf |
getFirstLeaf()
|
| long |
getLastKey()
|
| long |
getLastKey()
|
| PageDataLeaf |
getNextPage()
|
| PageDataLeaf |
getNextPage()
|
| Row |
getRowAt(int at)
Get the row at the given index.
|
| Row |
getRowAt(int at)
Get the row at the given index.
Parameters:
at - the index
Returns:
the row
|
| int |
getRowCount()
|
| int |
getRowCount()
|
| Row |
getRowWithKey(long key)
|
| Row |
getRowWithKey(long key)
|
| boolean |
isStream()
|
| boolean |
isStream()
|
| void |
moveTo(Session session, int newPos)
|
| void |
moveTo(Session session, int newPos)
|
| void |
remapChildren(int old)
|
| void |
remapChildren(int old)
|
| boolean |
remove(long key)
|
| boolean |
remove(long key)
|
| void |
setOverflow(int old, int overflow)
Set the overflow page id.
|
| void |
setOverflow(int old, int overflow)
Set the overflow page id.
Parameters:
old - the old overflow page id
overflow - the new overflow page id
|
| void |
setRowCountStored(int rowCount)
|
| void |
setRowCountStored(int rowCount)
|
| PageData |
split(int splitPoint)
|
| PageData |
split(int splitPoint)
|
| String |
toString()
|
| String |
toString()
|
| void |
write()
|
| void |
write()
|
|