InvoDB/invodb/btree/btree_uuid.h

27 lines
565 B
C
Raw Normal View History

2021-10-25 22:07:18 +08:00
//
// Created by YuhangQ on 2021/10/25.
//
#ifndef INVODB_BTREE_UUID_H
#define INVODB_BTREE_UUID_H
#include <btree/btree_node.h>
class BTreeUUID {
public:
BTreeUUID(const int& address);
void insert(const char* uuid, int address);
2021-10-26 21:26:48 +08:00
int find(std::string uuid);
2021-10-25 22:07:18 +08:00
void print();
private:
2021-10-25 23:15:15 +08:00
void innerPrint(BTreeNodeUUID* cur);
2021-10-26 21:26:48 +08:00
2021-10-26 12:29:59 +08:00
void split(std::string uuid, int address, int parentAddr, int curAddr);
void insertInternal(std::string uuid, int curAddr, int lLeafAddr, int rLeafAddr);
int root;
2021-10-25 22:07:18 +08:00
int cnt;
};
#endif //INVODB_BTREE_UUID_H