|
MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
|
逻辑算子描述当前执行计划要做什么 更多...
#include <logical_operator.h>
Public 成员函数 | |
| virtual LogicalOperatorType | type () const =0 |
| bool | is_physical () const override |
| bool | is_logical () const override |
| void | add_child (unique_ptr< LogicalOperator > oper) |
| void | add_expressions (unique_ptr< Expression > expr) |
| auto | children () -> vector< unique_ptr< LogicalOperator > > & |
| auto | expressions () -> vector< unique_ptr< Expression > > & |
| void | generate_general_child () |
Public 成员函数 继承自 OperatorNode | |
| virtual OpType | get_op_type () const |
| virtual bool | is_physical () const =0 |
| virtual bool | is_logical () const =0 |
| virtual uint64_t | hash () const |
| virtual bool | operator== (const OperatorNode &other) const |
| virtual unique_ptr< LogicalProperty > | find_log_prop (const vector< LogicalProperty * > &log_props) |
| Generate the logical property of the operator node using the input logical properties. 更多... | |
| virtual double | calculate_cost (LogicalProperty *prop, const vector< LogicalProperty * > &child_log_props, CostModel *cm) |
| Calculates the cost of a logical operation. 更多... | |
| void | add_general_child (OperatorNode *child) |
| vector< OperatorNode * > & | get_general_children () |
静态 Public 成员函数 | |
| static bool | can_generate_vectorized_operator (const LogicalOperatorType &type) |
Protected 属性 | |
| vector< unique_ptr< LogicalOperator > > | children_ |
| 子算子 更多... | |
| vector< unique_ptr< Expression > > | expressions_ |
Protected 属性 继承自 OperatorNode | |
| vector< OperatorNode * > | general_children_ |
逻辑算子描述当前执行计划要做什么
可以看OptimizeStage中相关的代码
|
inlineoverridevirtual |
实现了 OperatorNode.
|
inlineoverridevirtual |
实现了 OperatorNode.
|
protected |
子算子
表达式,比如select中的列,where中的谓词等等,都可以使用表达式来表示 表达式能是一个常量,也可以是一个函数,也可以是一个列,也可以是一个子查询等等