BadgerDB
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
Public Attributes | List of all members
badgerdb::IndexMetaInfo Struct Reference

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>

Public Attributes

char relationName [20]
 
int attrByteOffset
 
Datatype attrType
 
PageId rootPageNo
 

Detailed Description

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.

Member Data Documentation

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: