OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindInputsVisitor Class Reference
+ Inheritance diagram for anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindInputsVisitor:
+ Collaboration diagram for anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindInputsVisitor:

Public Member Functions

 RexRebindInputsVisitor (const RelAlgNode *old_input, const RelAlgNode *new_input)
virtual ~RexRebindInputsVisitor ()=default
void * visitInput (const RexInput *rex_input) const override
- Public Member Functions inherited from RexVisitor< void * >
void * visitInput (const RexInput *) const override
void * visitLiteral (const RexLiteral *) const override
void * visitSubQuery (const RexSubQuery *) const override
void * visitRef (const RexRef *) const override
void * visitOperator (const RexOperator *rex_operator) const override
void * visitCase (const RexCase *rex_case) const override
- Public Member Functions inherited from RexVisitorBase< void * >
virtual void * visit (const RexScalar *rex_scalar) const

Private Attributes

const RelAlgNodeold_input_
const RelAlgNodenew_input_

Additional Inherited Members

- Protected Member Functions inherited from RexVisitor< void * >
virtual void * aggregateResult (const void *&aggregate, const void *&next_result) const
void * defaultResult () const override

Detailed Description

Definition at line 70 of file RelAlgDagBuilder.cpp.

Constructor & Destructor Documentation

anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindInputsVisitor::RexRebindInputsVisitor ( const RelAlgNode old_input,
const RelAlgNode new_input 
virtual anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindInputsVisitor::~RexRebindInputsVisitor ( )

Member Function Documentation

void* anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindInputsVisitor::visitInput ( const RexInput rex_input) const

Implements RexVisitorBase< void * >.

Reimplemented in anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindReindexInputsVisitor.

Definition at line 77 of file RelAlgDagBuilder.cpp.

References RexInput::getSourceNode(), rebind_inputs_from_left_deep_join(), and RexInput::setSourceNode().

77  {
78  const auto old_source = rex_input->getSourceNode();
79  if (old_source == old_input_) {
80  const auto left_deep_join = dynamic_cast<const RelLeftDeepInnerJoin*>(new_input_);
81  if (left_deep_join) {
82  rebind_inputs_from_left_deep_join(rex_input, left_deep_join);
83  return nullptr;
84  }
85  rex_input->setSourceNode(new_input_);
86  }
87  return nullptr;
88  };
void setSourceNode(const RelAlgNode *node) const
const RelAlgNode * getSourceNode() const
void rebind_inputs_from_left_deep_join(const RexScalar *rex, const RelLeftDeepInnerJoin *left_deep_join)

+ Here is the call graph for this function:

Member Data Documentation

const RelAlgNode* anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindInputsVisitor::new_input_

Definition at line 92 of file RelAlgDagBuilder.cpp.

const RelAlgNode* anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindInputsVisitor::old_input_

Definition at line 88 of file RelAlgDagBuilder.cpp.

The documentation for this class was generated from the following file: