public class Index extends AbstractPage
innerPage, sliceInput| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isLeafPage() |
boolean |
isRootPage() |
int |
usedBytesInIndexPage()
Get used bytes in a page.
|
getFilHeader, getPageNumber, getSliceInput, pageType, toStringpublic boolean isLeafPage()
public boolean isRootPage()
public int usedBytesInIndexPage()
1000 + 376 + 8 - 240 = 1144
0 +----------------------+ ... page offset 0
| FilHeader |
38 +----------------------+
138 | row 1 |
400 | row 2 |
660 | row 3 (mark deleted) | ... Deleted record will be counted as free space
800 | row 4 |
920 | row 5 | ... Heap top position. The byte offset of the "end" of the currently used space
1000 +----------------------+
| |
| | ... Free space
16000 +----------------------+
| Directory slots |
16376 +----------------------+
| FilTrailer |
16384 +----------------------+ ... page offset SIZE_OF_PAGE, usually 16KiB
Copyright © 2019–2020 Alibaba Group Holding Limited. All rights reserved.