NITCbase / nitcbase.github.io

The entire documentation on implementing the NITCbase project.
https://nitcbase.github.io/
MIT License
10 stars 6 forks source link

Add designs for B+ tree layer and update all calls to match new design #55

Closed clifordjoshy closed 1 year ago

clifordjoshy commented 1 year ago

bPlus tree has been implemented following the below class structure.

class BPlusTree {
 public:
    static int bPlusCreate(int relId, char attrName[ATTR_SIZE]);
    static int bPlusInsert(int relId, char attrName[ATTR_SIZE], union Attribute attrVal, RecId recordId);
    static RecId bPlusSearch(int relId, char attrName[ATTR_SIZE], union Attribute attrVal, int op);
    static int bPlusDestroy(int rootBlockNum);
};

The documentation for that was also written.

In addition, the following changes were introduced

Buffer Layer

Cache Layer

Block Access Layer

Schema Layer

Algebra Layer