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

描述一个索引 更多...

#include <index_meta.h>

Public 成员函数

RC init (const char *name, const FieldMeta &field)
 
const char * name () const
 
const char * field () const
 
void desc (std::ostream &os) const
 
void to_json (Json::Value &json_value) const
 

静态 Public 成员函数

static RC from_json (const TableMeta &table, const Json::Value &json_value, IndexMeta &index)
 

Protected 属性

std::string name_
 
std::string field_
 

详细描述

描述一个索引

一个索引包含了表的哪些字段,索引的名称等。 如果以后实现了多种类型的索引,还需要记录索引的类型,对应类型的一些元数据等


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