MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
|
与LogicalOperator对应,物理算子描述执行计划将如何执行 更多...
#include <physical_operator.h>
Public 成员函数 | |
virtual string | name () const |
virtual string | param () const |
bool | is_physical () const override |
bool | is_logical () const override |
virtual PhysicalOperatorType | type () const =0 |
virtual RC | open (Trx *trx)=0 |
virtual RC | next () |
virtual RC | next (Chunk &chunk) |
virtual RC | close ()=0 |
virtual Tuple * | current_tuple () |
virtual RC | tuple_schema (TupleSchema &schema) const |
void | add_child (unique_ptr< PhysicalOperator > oper) |
vector< unique_ptr< PhysicalOperator > > & | children () |
![]() | |
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 () |
Protected 属性 | |
vector< unique_ptr< PhysicalOperator > > | children_ |
![]() | |
vector< OperatorNode * > | general_children_ |
与LogicalOperator对应,物理算子描述执行计划将如何执行
|
inlineoverridevirtual |
实现了 OperatorNode.
|
inlineoverridevirtual |
实现了 OperatorNode.
|
virtual |
这两个函数是为了打印时使用的,比如在explain中
被 CalcPhysicalOperator 重载.