MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
Index类 参考abstract

索引基类 更多...

#include <index.h>

类 Index 继承关系图:
BplusTreeIndex

Public 成员函数

const IndexMetaindex_meta () const
 
virtual RC insert_entry (const char *record, const RID *rid)=0
 插入一条数据 更多...
 
virtual RC delete_entry (const char *record, const RID *rid)=0
 删除一条数据 更多...
 
virtual IndexScannercreate_scanner (const char *left_key, int left_len, bool left_inclusive, const char *right_key, int right_len, bool right_inclusive)=0
 创建一个索引数据的扫描器 更多...
 
virtual RC sync ()=0
 同步索引数据到磁盘 更多...
 

Protected 成员函数

RC init (const IndexMeta &index_meta, const FieldMeta &field_meta)
 

Protected 属性

IndexMeta index_meta_
 索引的元数据
 
FieldMeta field_meta_
 当前实现仅考虑一个字段的索引
 

详细描述

索引基类

成员函数说明

◆ create_scanner()

virtual IndexScanner * Index::create_scanner ( const char *  left_key,
int  left_len,
bool  left_inclusive,
const char *  right_key,
int  right_len,
bool  right_inclusive 
)
pure virtual

创建一个索引数据的扫描器

参数
left_key要扫描的左边界
left_len左边界的长度
left_inclusive是否包含左边界
right_key要扫描的右边界
right_len右边界的长度
right_inclusive是否包含右边界

BplusTreeIndex 内被实现.

◆ delete_entry()

virtual RC Index::delete_entry ( const char *  record,
const RID rid 
)
pure virtual

删除一条数据

参数
record删除的记录,当前假设记录是定长的
[in]rid删除的记录的位置

BplusTreeIndex 内被实现.

◆ insert_entry()

virtual RC Index::insert_entry ( const char *  record,
const RID rid 
)
pure virtual

插入一条数据

参数
record插入的记录,当前假设记录是定长的
[out]rid插入的记录的位置

BplusTreeIndex 内被实现.

◆ sync()

virtual RC Index::sync ( )
pure virtual

同步索引数据到磁盘

BplusTreeIndex 内被实现.


该类的文档由以下文件生成: