17#include "storage/index/bplus_tree.h"
18#include "storage/index/index.h"
30 RC create(
Table *table,
const char *file_name,
const IndexMeta &index_meta,
const FieldMeta &field_meta)
override;
31 RC open(
Table *table,
const char *file_name,
const IndexMeta &index_meta,
const FieldMeta &field_meta)
override;
41 int right_len,
bool right_inclusive)
override;
47 Table *table_ =
nullptr;
62 RC destroy()
override;
64 RC open(
const char *left_key,
int left_len,
bool left_inclusive,
const char *right_key,
int right_len,
65 bool right_inclusive);
B+树的实现
Definition: bplus_tree.h:450
B+树索引扫描器
Definition: bplus_tree_index.h:56
RC next_entry(RID *rid) override
Definition: bplus_tree_index.cpp:119
B+树索引
Definition: bplus_tree_index.h:25
RC sync() override
同步索引数据到磁盘
Definition: bplus_tree_index.cpp:106
RC insert_entry(const char *record, const RID *rid) override
插入一条数据
Definition: bplus_tree_index.cpp:83
RC delete_entry(const char *record, const RID *rid) override
删除一条数据
Definition: bplus_tree_index.cpp:88
IndexScanner * create_scanner(const char *left_key, int left_len, bool left_inclusive, const char *right_key, int right_len, bool right_inclusive) override
Definition: bplus_tree_index.cpp:93
B+树的扫描器
Definition: bplus_tree.h:663
索引扫描器
Definition: index.h:104
索引基类
Definition: index.h:38
标识一个记录的位置 一个记录是放在某个文件的某个页面的某个槽位。这里不记录文件信息,记录页面和槽位信息
Definition: record.h:35