MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
delete_physical_operator.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//
12// Created by WangYunlai on 2022/6/9.
13//
14
15#pragma once
16
17#include "sql/operator/physical_operator.h"
18
19class Trx;
20class DeleteStmt;
21
27{
28public:
29 DeletePhysicalOperator(Table *table) : table_(table)
30 {}
31
32 virtual ~DeletePhysicalOperator() = default;
33
34 PhysicalOperatorType type() const override
35 {
36 return PhysicalOperatorType::DELETE;
37 }
38
39 RC open(Trx *trx) override;
40 RC next() override;
41 RC close() override;
42
43 Tuple *current_tuple() override
44 {
45 return nullptr;
46 }
47
48private:
49 Table *table_ = nullptr;
50 Trx *trx_ = nullptr;
51};
物理算子,删除
Definition: delete_physical_operator.h:27
Delete 语句
Definition: delete_stmt.h:28
与LogicalOperator对应,物理算子描述执行计划将如何执行
Definition: physical_operator.h:57
Definition: table.h:37
事务接口
Definition: trx.h:142
元组的抽象描述
Definition: tuple.h:84
PhysicalOperatorType
物理算子类型
Definition: physical_operator.h:39