MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
explain_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/12/27.
13//
14
15#pragma once
16
17#include "sql/operator/physical_operator.h"
18
24{
25public:
26 ExplainPhysicalOperator() = default;
27 virtual ~ExplainPhysicalOperator() = default;
28
29 PhysicalOperatorType type() const override
30 {
31 return PhysicalOperatorType::EXPLAIN;
32 }
33
34 RC open(Trx *trx) override;
35 RC next() override;
36 RC close() override;
37 Tuple *current_tuple() override;
38
39private:
40 void to_string(std::ostream &os, PhysicalOperator *oper, int level, bool last_child, std::vector<bool> &ends);
41
42private:
43 std::string physical_plan_;
44 ValueListTuple tuple_;
45};
Explain物理算子
Definition: explain_physical_operator.h:24
void to_string(std::ostream &os, PhysicalOperator *oper, int level, bool last_child, std::vector< bool > &ends)
Definition: explain_physical_operator.cpp:75
与LogicalOperator对应,物理算子描述执行计划将如何执行
Definition: physical_operator.h:57
事务接口
Definition: trx.h:142
元组的抽象描述
Definition: tuple.h:84
一些常量值组成的Tuple
Definition: tuple.h:340
PhysicalOperatorType
物理算子类型
Definition: physical_operator.h:39