最简单的两表(称为左表、右表)join算子
更多...
#include <join_physical_operator.h>
|
RC | left_next () |
|
RC | right_next () |
| 左表遍历下一条数据
|
|
|
Trx * | trx_ = nullptr |
| 右表遍历下一条数据,如果上一轮结束了就重新开始新的一轮
|
|
PhysicalOperator * | left_ = nullptr |
| 左表右表的真实对象是在PhysicalOperator::children_中,这里是为了写的时候更简单
|
|
PhysicalOperator * | right_ = nullptr |
|
Tuple * | left_tuple_ = nullptr |
|
Tuple * | right_tuple_ = nullptr |
|
JoinedTuple | joined_tuple_ |
|
bool | round_done_ = true |
| 当前关联的左右两个tuple
|
|
bool | right_closed_ = true |
| 右表遍历的一轮是否结束
|
|
最简单的两表(称为左表、右表)join算子
依次遍历左表的每一行,然后关联右表的每一行
◆ close()
RC NestedLoopJoinPhysicalOperator::close |
( |
| ) |
|
|
overridevirtual |
◆ current_tuple()
Tuple * NestedLoopJoinPhysicalOperator::current_tuple |
( |
| ) |
|
|
overridevirtual |
◆ next()
RC NestedLoopJoinPhysicalOperator::next |
( |
| ) |
|
|
overridevirtual |
◆ open()
RC NestedLoopJoinPhysicalOperator::open |
( |
Trx * |
trx | ) |
|
|
overridevirtual |
◆ type()
该类的文档由以下文件生成: