OmniSciDB  c1a53651b2
 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 69 of file RelAlgDag.cpp.

Constructor & Destructor Documentation

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

Definition at line 71 of file RelAlgDag.cpp.

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

Member Function Documentation

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

Definition at line 76 of file RelAlgDag.cpp.

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

76  {
77  const auto old_source = rex_input->getSourceNode();
78  if (old_source == old_input_) {
79  const auto left_deep_join = dynamic_cast<const RelLeftDeepInnerJoin*>(new_input_);
80  if (left_deep_join) {
81  rebind_inputs_from_left_deep_join(rex_input, left_deep_join);
82  return nullptr;
83  }
84  rex_input->setSourceNode(new_input_);
85  }
86  return nullptr;
87  };
void setSourceNode(const RelAlgNode *node) const
Definition: RelAlgDag.h:394
const RelAlgNode * getSourceNode() const
Definition: RelAlgDag.h:389
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_
private

Definition at line 91 of file RelAlgDag.cpp.

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

Definition at line 87 of file RelAlgDag.cpp.


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