OmniSciDB
c1a53651b2
|
#include <RelAlgDag.h>
Public Member Functions | |
RelLeftDeepInnerJoin ()=default | |
RelLeftDeepInnerJoin (const std::shared_ptr< RelFilter > &filter, RelAlgInputs inputs, std::vector< std::shared_ptr< const RelJoin >> &original_joins) | |
const RexScalar * | getInnerCondition () const |
const RexScalar * | getOuterCondition (const size_t nesting_level) const |
const JoinType | getJoinType (const size_t nesting_level) const |
std::string | toString (RelRexToStringConfig config=RelRexToStringConfig::defaults()) const override |
size_t | toHash () const override |
size_t | size () const override |
std::shared_ptr< RelAlgNode > | deepCopy () const override |
bool | coversOriginalNode (const RelAlgNode *node) const |
const RelFilter * | getOriginalFilter () const |
std::vector< std::shared_ptr < const RelJoin > > | getOriginalJoins () const |
![]() | |
RelAlgNode (RelAlgInputs inputs={}) | |
virtual | ~RelAlgNode () |
void | resetQueryExecutionState () |
void | setContextData (const RaExecutionDesc *context_data) const |
void | setOutputMetainfo (std::vector< TargetMetaInfo > targets_metainfo) const |
void | setQueryPlanDag (const std::string &extracted_query_plan_dag) const |
std::string | getQueryPlanDag () const |
size_t | getQueryPlanDagHash () const |
const std::vector < TargetMetaInfo > & | getOutputMetainfo () const |
unsigned | getId () const |
void | setIdInPlanTree (size_t id) const |
std::optional< size_t > | getIdInPlanTree () const |
bool | hasContextData () const |
const RaExecutionDesc * | getContextData () const |
const size_t | inputCount () const |
const RelAlgNode * | getInput (const size_t idx) const |
std::shared_ptr< const RelAlgNode > | getAndOwnInput (const size_t idx) const |
void | addManagedInput (std::shared_ptr< const RelAlgNode > input) |
bool | hasInput (const RelAlgNode *needle) const |
virtual void | replaceInput (std::shared_ptr< const RelAlgNode > old_input, std::shared_ptr< const RelAlgNode > input) |
void | setRelNodeDagId (const size_t id) const |
size_t | getRelNodeDagId () const |
bool | isNop () const |
void | markAsNop () |
void | clearContextData () const |
Private Attributes | |
std::unique_ptr< const RexScalar > | condition_ |
std::vector< std::unique_ptr < const RexScalar > > | outer_conditions_per_level_ |
std::shared_ptr< RelFilter > | original_filter_ |
std::vector< std::shared_ptr < const RelJoin > > | original_joins_ |
Friends | |
struct | RelAlgDagSerializer |
Additional Inherited Members | |
![]() | |
static void | resetRelAlgFirstId () noexcept |
![]() | |
RelAlgInputs | inputs_ |
unsigned | id_ |
std::optional< size_t > | id_in_plan_tree_ |
std::optional< size_t > | hash_ |
Definition at line 1751 of file RelAlgDag.h.
|
default |
RelLeftDeepInnerJoin::RelLeftDeepInnerJoin | ( | const std::shared_ptr< RelFilter > & | filter, |
RelAlgInputs | inputs, | ||
std::vector< std::shared_ptr< const RelJoin >> & | original_joins | ||
) |
bool RelLeftDeepInnerJoin::coversOriginalNode | ( | const RelAlgNode * | node | ) | const |
Definition at line 156 of file RelLeftDeepInnerJoin.cpp.
References original_filter_, and original_joins_.
|
overridevirtual |
const RexScalar * RelLeftDeepInnerJoin::getInnerCondition | ( | ) | const |
Definition at line 91 of file RelLeftDeepInnerJoin.cpp.
References condition_.
Referenced by RelAlgExecutor::translateLeftDeepJoinFilter(), RelRexDagVisitor::visit(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalInputsVisitor::visitLeftDeepInnerJoin().
const JoinType RelLeftDeepInnerJoin::getJoinType | ( | const size_t | nesting_level | ) | const |
Definition at line 105 of file RelLeftDeepInnerJoin.cpp.
References CHECK_LE, and original_joins_.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::left_deep_join_types().
const RelFilter * RelLeftDeepInnerJoin::getOriginalFilter | ( | ) | const |
Definition at line 168 of file RelLeftDeepInnerJoin.cpp.
References original_filter_.
std::vector< std::shared_ptr< const RelJoin > > RelLeftDeepInnerJoin::getOriginalJoins | ( | ) | const |
Definition at line 172 of file RelLeftDeepInnerJoin.cpp.
References original_joins_.
const RexScalar * RelLeftDeepInnerJoin::getOuterCondition | ( | const size_t | nesting_level | ) | const |
Definition at line 95 of file RelLeftDeepInnerJoin.cpp.
References CHECK_GE, CHECK_LE, and outer_conditions_per_level_.
Referenced by QueryPlanDagExtractor::handleLeftDeepJoinTree(), anonymous_namespace{RelAlgExecutor.cpp}::left_deep_join_types(), RelAlgExecutor::translateLeftDeepJoinFilter(), RelRexDagVisitor::visit(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalInputsVisitor::visitLeftDeepInnerJoin().
|
overridevirtual |
Implements RelAlgNode.
Definition at line 143 of file RelLeftDeepInnerJoin.cpp.
References RelAlgNode::inputs_.
|
overridevirtual |
Implements RelAlgNode.
Definition at line 128 of file RelLeftDeepInnerJoin.cpp.
References condition_, RelAlgNode::hash_, HASH_N, RelAlgNode::inputs_, original_filter_, outer_conditions_per_level_, and RelLeftDeepInnerJoin().
|
overridevirtual |
Implements RelAlgNode.
Definition at line 110 of file RelLeftDeepInnerJoin.cpp.
References condition_, RelAlgNode::inputs_, RelRexToStringConfig::skip_input_nodes, to_string(), and typeName().
|
friend |
Definition at line 1787 of file RelAlgDag.h.
|
private |
Definition at line 1782 of file RelAlgDag.h.
Referenced by getInnerCondition(), toHash(), and toString().
|
private |
Definition at line 1784 of file RelAlgDag.h.
Referenced by coversOriginalNode(), getOriginalFilter(), and toHash().
|
private |
Definition at line 1785 of file RelAlgDag.h.
Referenced by coversOriginalNode(), getJoinType(), and getOriginalJoins().
|
private |
Definition at line 1783 of file RelAlgDag.h.
Referenced by getOuterCondition(), and toHash().