Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
miniob
提交
cf52f463
M
miniob
项目概览
oceanbase
/
miniob
接近 2 年 前同步成功
通知
75
Star
1521
Fork
537
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
M
miniob
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
未验证
提交
cf52f463
编写于
4月 02, 2022
作者:
羽飞
提交者:
GitHub
4月 02, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #32 from hnwyllmm/refactor/btree-1
refactor index directory
上级
02429ff7
4537b9da
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
12 addition
and
12 deletion
+12
-12
src/observer/storage/common/table.cpp
src/observer/storage/common/table.cpp
+2
-2
src/observer/storage/default/default_handler.cpp
src/observer/storage/default/default_handler.cpp
+2
-2
src/observer/storage/index/bplus_tree.cpp
src/observer/storage/index/bplus_tree.cpp
+1
-1
src/observer/storage/index/bplus_tree.h
src/observer/storage/index/bplus_tree.h
+1
-1
src/observer/storage/index/bplus_tree_index.cpp
src/observer/storage/index/bplus_tree_index.cpp
+1
-1
src/observer/storage/index/bplus_tree_index.h
src/observer/storage/index/bplus_tree_index.h
+2
-2
src/observer/storage/index/index.cpp
src/observer/storage/index/index.cpp
+2
-2
src/observer/storage/index/index.h
src/observer/storage/index/index.h
+0
-0
unitest/bplus_tree_test.cpp
unitest/bplus_tree_test.cpp
+1
-1
未找到文件。
src/observer/storage/common/table.cpp
浏览文件 @
cf52f463
...
...
@@ -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
)
...
...
src/observer/storage/default/default_handler.cpp
浏览文件 @
cf52f463
...
...
@@ -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
}
src/observer/storage/
common
/bplus_tree.cpp
→
src/observer/storage/
index
/bplus_tree.cpp
浏览文件 @
cf52f463
...
...
@@ -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"
...
...
src/observer/storage/
common
/bplus_tree.h
→
src/observer/storage/
index
/bplus_tree.h
浏览文件 @
cf52f463
...
...
@@ -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"
...
...
src/observer/storage/
common
/bplus_tree_index.cpp
→
src/observer/storage/
index
/bplus_tree_index.cpp
浏览文件 @
cf52f463
...
...
@@ -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
...
...
src/observer/storage/
common
/bplus_tree_index.h
→
src/observer/storage/
index
/bplus_tree_index.h
浏览文件 @
cf52f463
...
...
@@ -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:
...
...
src/observer/storage/
common
/index.cpp
→
src/observer/storage/
index
/index.cpp
浏览文件 @
cf52f463
...
...
@@ -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
}
src/observer/storage/
common
/index.h
→
src/observer/storage/
index
/index.h
浏览文件 @
cf52f463
文件已移动
unitest/bplus_tree_test.cpp
浏览文件 @
cf52f463
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录