MiniOB
1
MiniOB is one mini database, helping developers to learn how database works.
Toggle main menu visibility
首页
相关页面
模块
类
类列表
类索引
类继承关系
类成员
全部
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
函数
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
变量
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
类型定义
枚举
枚举值
相关函数
文件
文件列表
文件成员
全部
宏定义
•
全部
类
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
载入中...
搜索中...
未找到
src
observer
storage
record
record_scanner.h
1
/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved.
2
miniob is licensed under Mulan PSL v2.
3
You can use this software according to the terms and conditions of the Mulan PSL v2.
4
You may obtain a copy of Mulan PSL v2 at:
5
http://license.coscl.org.cn/MulanPSL2
6
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
7
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
8
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9
See the Mulan PSL v2 for more details. */
10
11
#pragma once
12
13
#include "storage/record/record.h"
14
#include "storage/common/condition_filter.h"
15
20
class
RecordScanner
21
{
22
public
:
23
RecordScanner
() =
default
;
24
virtual
~RecordScanner
() =
default
;
25
29
virtual
RC
open_scan
() = 0;
30
34
virtual
RC
close_scan
() = 0;
35
41
virtual
RC
next
(
Record
&record) = 0;
42
};
RecordScanner
遍历某个表中所有记录
Definition:
record_scanner.h:21
RecordScanner::next
virtual RC next(Record &record)=0
获取下一条记录
RecordScanner::close_scan
virtual RC close_scan()=0
关闭 RecordScanner,释放相应的资源
RecordScanner::open_scan
virtual RC open_scan()=0
打开 RecordScanner
Record
表示一个记录
Definition:
record.h:101
制作者
1.9.5