The meta page, which holds metadata for Index file, is always first page of the btree index file and is cast to the following structure to store or retrieve information from it. Contains the relation name for which the index is created, the byte offset of the key value on which the index is made, the type of the key and the page no of the root page. Root page starts as page 2 but since a split can occur at the root the root page may get moved up and get a new page no.
More...
#include <btree.h>
The meta page, which holds metadata for Index file, is always first page of the btree index file and is cast to the following structure to store or retrieve information from it. Contains the relation name for which the index is created, the byte offset of the key value on which the index is made, the type of the key and the page no of the root page. Root page starts as page 2 but since a split can occur at the root the root page may get moved up and get a new page no.
Definition at line 139 of file btree.h.
int badgerdb::IndexMetaInfo::attrByteOffset |
Offset of attribute, over which index is built, inside the record stored in pages.
Definition at line 148 of file btree.h.
Datatype badgerdb::IndexMetaInfo::attrType |
Type of the attribute over which index is built.
Definition at line 153 of file btree.h.
char badgerdb::IndexMetaInfo::relationName[20] |
Name of base relation.
Definition at line 143 of file btree.h.
PageId badgerdb::IndexMetaInfo::rootPageNo |
Page number of root page of the B+ Tree inside the file index file.
Definition at line 158 of file btree.h.
The documentation for this struct was generated from the following file:
- /afs/cs.wisc.edu/u/h/a/haiyun/private/cs564-spr17/projects/p3/Btree/src/btree.h