mirror of
https://github.com/YuhangQ/InvoDB.git
synced 2025-01-26 06:30:57 +00:00
btree insert finished!
This commit is contained in:
parent
ab822882ba
commit
b26cf470d1
@ -103,8 +103,8 @@ public:
|
||||
page.save();
|
||||
}
|
||||
static const int m = 28;
|
||||
std::string key[m+100];
|
||||
int val[m+200];
|
||||
std::string key[m];
|
||||
int val[m+1];
|
||||
int parent;
|
||||
private:
|
||||
static std::map<int, BTreeNodeUUID*> map;
|
||||
|
@ -13,8 +13,8 @@ public:
|
||||
~BTreeUUID() { delete root; };
|
||||
void insert(const char* uuid, int address);
|
||||
void print();
|
||||
void innerPrint(BTreeNodeUUID* cur);
|
||||
private:
|
||||
void innerPrint(BTreeNodeUUID* cur);
|
||||
void split(std::string uuid, int address, BTreeNodeUUID* parent, BTreeNodeUUID* cur);
|
||||
void insertInternal(std::string uuid, BTreeNodeUUID* cur, BTreeNodeUUID* lLeaf, BTreeNodeUUID* rLeaf);
|
||||
BTreeNodeUUID *root;
|
||||
|
Loading…
x
Reference in New Issue
Block a user