OmniSciDB  c07336695a
anonymous_namespace{RelAlgAbstractInterpreter.cpp}::RexRebindInputsVisitor Class Reference
+ Inheritance diagram for anonymous_namespace{RelAlgAbstractInterpreter.cpp}::RexRebindInputsVisitor:
+ Collaboration diagram for anonymous_namespace{RelAlgAbstractInterpreter.cpp}::RexRebindInputsVisitor:

Public Member Functions

 RexRebindInputsVisitor (const RelAlgNode *old_input, const RelAlgNode *new_input)
 
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 60 of file RelAlgAbstractInterpreter.cpp.

Constructor & Destructor Documentation

◆ RexRebindInputsVisitor()

anonymous_namespace{RelAlgAbstractInterpreter.cpp}::RexRebindInputsVisitor::RexRebindInputsVisitor ( const RelAlgNode old_input,
const RelAlgNode new_input 
)
inline

Member Function Documentation

◆ visitInput()

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

Implements RexVisitorBase< void * >.

Definition at line 65 of file RelAlgAbstractInterpreter.cpp.

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

65  {
66  const auto old_source = rex_input->getSourceNode();
67  if (old_source == old_input_) {
68  const auto left_deep_join = dynamic_cast<const RelLeftDeepInnerJoin*>(new_input_);
69  if (left_deep_join) {
70  rebind_inputs_from_left_deep_join(rex_input, left_deep_join);
71  return nullptr;
72  }
73  rex_input->setSourceNode(new_input_);
74  }
75  return nullptr;
76  };
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

◆ new_input_

const RelAlgNode* anonymous_namespace{RelAlgAbstractInterpreter.cpp}::RexRebindInputsVisitor::new_input_
private

Definition at line 80 of file RelAlgAbstractInterpreter.cpp.

◆ old_input_

const RelAlgNode* anonymous_namespace{RelAlgAbstractInterpreter.cpp}::RexRebindInputsVisitor::old_input_
private

Definition at line 76 of file RelAlgAbstractInterpreter.cpp.


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