13#include "storage/index/index.h"
27 return RC::UNIMPLEMENTED;
32 return RC::UNIMPLEMENTED;
35 vector<RID> ann_search(
const vector<float> &base_vector,
size_t limit) {
return vector<RID>(); }
37 RC close() {
return RC::UNIMPLEMENTED; }
39 RC
insert_entry(
const char *record,
const RID *rid)
override {
return RC::UNIMPLEMENTED; };
40 RC
delete_entry(
const char *record,
const RID *rid)
override {
return RC::UNIMPLEMENTED; };
42 RC
sync()
override {
return RC::UNIMPLEMENTED; };
46 Table *table_ =
nullptr;
索引基类
Definition: index.h:38
ivfflat 向量索引
Definition: ivfflat_index.h:20
RC insert_entry(const char *record, const RID *rid) override
插入一条数据
Definition: ivfflat_index.h:39
RC delete_entry(const char *record, const RID *rid) override
删除一条数据
Definition: ivfflat_index.h:40
RC sync() override
同步索引数据到磁盘
Definition: ivfflat_index.h:42
标识一个记录的位置 一个记录是放在某个文件的某个页面的某个槽位。这里不记录文件信息,记录页面和槽位信息
Definition: record.h:35