未验证 提交 cf52f463 编写于 作者: 羽飞's avatar 羽飞 提交者: GitHub

Merge pull request #32 from hnwyllmm/refactor/btree-1

refactor index directory
......@@ -25,8 +25,8 @@ See the Mulan PSL v2 for more details. */
#include "storage/common/record_manager.h"
#include "storage/common/condition_filter.h"
#include "storage/common/meta_util.h"
#include "storage/common/index.h"
#include "storage/common/bplus_tree_index.h"
#include "storage/index/index.h"
#include "storage/index/bplus_tree_index.h"
#include "storage/trx/trx.h"
Table::Table() : data_buffer_pool_(nullptr), file_id_(-1), record_handler_(nullptr)
......
......@@ -20,7 +20,7 @@ See the Mulan PSL v2 for more details. */
#include "common/log/log.h"
#include "common/lang/string.h"
#include "storage/common/record_manager.h"
#include "storage/common/bplus_tree.h"
#include "storage/index/bplus_tree.h"
#include "storage/common/table.h"
#include "storage/common/condition_filter.h"
......@@ -230,4 +230,4 @@ RC DefaultHandler::sync()
}
}
return rc;
}
\ No newline at end of file
}
......@@ -12,7 +12,7 @@ See the Mulan PSL v2 for more details. */
// Created by Xie Meiyi
// Rewritten by Longda & Wangyunlai
//
#include "storage/common/bplus_tree.h"
#include "storage/index/bplus_tree.h"
#include "storage/default/disk_buffer_pool.h"
#include "rc.h"
#include "common/log/log.h"
......
......@@ -20,7 +20,7 @@ See the Mulan PSL v2 for more details. */
#include <string.h>
#include <sstream>
#include "record_manager.h"
#include "storage/common/record_manager.h"
#include "storage/default/disk_buffer_pool.h"
#include "sql/parser/parse_defs.h"
......
......@@ -12,7 +12,7 @@ See the Mulan PSL v2 for more details. */
// Created by Meiyi & wangyunlai.wyl on 2021/5/19.
//
#include "storage/common/bplus_tree_index.h"
#include "storage/index/bplus_tree_index.h"
#include "common/log/log.h"
BplusTreeIndex::~BplusTreeIndex() noexcept
......
......@@ -15,8 +15,8 @@ See the Mulan PSL v2 for more details. */
#ifndef __OBSERVER_STORAGE_COMMON_BPLUS_TREE_INDEX_H_
#define __OBSERVER_STORAGE_COMMON_BPLUS_TREE_INDEX_H_
#include "storage/common/index.h"
#include "storage/common/bplus_tree.h"
#include "storage/index/index.h"
#include "storage/index/bplus_tree.h"
class BplusTreeIndex : public Index {
public:
......
......@@ -12,11 +12,11 @@ See the Mulan PSL v2 for more details. */
// Created by Meiyi & wangyunlai.wyl on 2021/5/19.
//
#include "storage/common/index.h"
#include "storage/index/index.h"
RC Index::init(const IndexMeta &index_meta, const FieldMeta &field_meta)
{
index_meta_ = index_meta;
field_meta_ = field_meta;
return RC::SUCCESS;
}
\ No newline at end of file
}
......@@ -15,7 +15,7 @@ See the Mulan PSL v2 for more details. */
#include <list>
#include <iostream>
#include "storage/common/bplus_tree.h"
#include "storage/index/bplus_tree.h"
#include "storage/default/disk_buffer_pool.h"
#include "rc.h"
#include "common/log/log.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册