MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
全部  文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
record_scanner.h
1/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved.
2miniob is licensed under Mulan PSL v2.
3You can use this software according to the terms and conditions of the Mulan PSL v2.
4You may obtain a copy of Mulan PSL v2 at:
5 http://license.coscl.org.cn/MulanPSL2
6THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
7EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
8MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9See 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
21{
22public:
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};
遍历某个表中所有记录
Definition: record_scanner.h:21
virtual RC next(Record &record)=0
获取下一条记录
virtual RC close_scan()=0
关闭 RecordScanner,释放相应的资源
virtual RC open_scan()=0
打开 RecordScanner
表示一个记录
Definition: record.h:101