|
MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
|
leaf page of bplus tree 更多...
#include <bplus_tree.h>
Public 属性 | |
| PageNum | next_brother |
| char | array [0] |
Public 属性 继承自 IndexNode | |
| bool | is_leaf |
| int | key_num |
| 当前是叶子节点还是内部节点 | |
| PageNum | parent |
| 当前页面上一共有多少个键值对 | |
静态 Public 属性 | |
| static constexpr int | HEADER_SIZE = IndexNode::HEADER_SIZE + 4 |
静态 Public 属性 继承自 IndexNode | |
| static constexpr int | HEADER_SIZE = 12 |
leaf page of bplus tree
the key is in format: the key value of record and rid. so the key in leaf page must be unique. the value is rid. can you implenment a cluster index ?
| char LeafIndexNode::array[0] |
leaf can store order keys and rids at most