MiniOB
1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
src
observer
sql
operator
delete_logical_operator.h
1
/* Copyright (c) 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
//
12
// Created by WangYunlai on 2022/12/26.
13
//
14
15
#pragma once
16
17
#include "sql/operator/logical_operator.h"
18
23
class
DeleteLogicalOperator
:
public
LogicalOperator
24
{
25
public
:
26
DeleteLogicalOperator
(
Table
*table);
27
virtual
~DeleteLogicalOperator
() =
default
;
28
29
LogicalOperatorType type()
const override
{
return
LogicalOperatorType::DELETE; }
30
OpType
get_op_type
()
const override
{
return
OpType::LOGICALDELETE; }
31
Table
*table()
const
{
return
table_; }
32
33
private
:
34
Table
*table_ =
nullptr
;
35
};
DeleteLogicalOperator
逻辑算子,用于执行delete语句
Definition:
delete_logical_operator.h:24
DeleteLogicalOperator::get_op_type
OpType get_op_type() const override
Definition:
delete_logical_operator.h:30
LogicalOperator
逻辑算子描述当前执行计划要做什么
Definition:
logical_operator.h:50
Table
表
Definition:
table.h:42
制作者
1.9.5