OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{RelAlgDag.cpp}::RexRebindInputsVisitor Class Reference
+ Inheritance diagram for anonymous_namespace{RelAlgDag.cpp}::RexRebindInputsVisitor:
+ Collaboration diagram for anonymous_namespace{RelAlgDag.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

Private Attributes

const RelAlgNodeold_input_
const RelAlgNodenew_input_

Detailed Description

Definition at line 70 of file RelAlgDag.cpp.

Constructor & Destructor Documentation

anonymous_namespace{RelAlgDag.cpp}::RexRebindInputsVisitor::RexRebindInputsVisitor ( const RelAlgNode old_input,
const RelAlgNode new_input 

Definition at line 72 of file RelAlgDag.cpp.

virtual anonymous_namespace{RelAlgDag.cpp}::RexRebindInputsVisitor::~RexRebindInputsVisitor ( )

Member Function Documentation

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

Definition at line 77 of file RelAlgDag.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
Definition: RelAlgDag.h:1061
const RelAlgNode * getSourceNode() const
Definition: RelAlgDag.h:1056
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{RelAlgDag.cpp}::RexRebindInputsVisitor::new_input_

Definition at line 92 of file RelAlgDag.cpp.

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

Definition at line 88 of file RelAlgDag.cpp.

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