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

Constructor & Destructor Documentation

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

Definition at line 71 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

Implements RexVisitorBase< void * >.

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

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:356
const RelAlgNode * getSourceNode() const
Definition: RelAlgDag.h:351
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 91 of file RelAlgDag.cpp.

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

Definition at line 87 of file RelAlgDag.cpp.

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