OmniSciDB  94e8789169
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RexInput Class Reference

#include <RelAlgDagBuilder.h>

+ Inheritance diagram for RexInput:
+ Collaboration diagram for RexInput:

Public Member Functions

 RexInput (const RelAlgNode *node, const unsigned in_index)
 
const RelAlgNodegetSourceNode () const
 
void setSourceNode (const RelAlgNode *node) const
 
bool operator== (const RexInput &that) const
 
std::string toString () const override
 
std::unique_ptr< RexInputdeepCopy () const
 
- Public Member Functions inherited from RexAbstractInput
 RexAbstractInput (const unsigned in_index)
 
unsigned getIndex () const
 
void setIndex (const unsigned in_index) const
 
- Public Member Functions inherited from Rex
virtual ~Rex ()
 

Private Attributes

const RelAlgNodenode_
 

Detailed Description

Definition at line 323 of file RelAlgDagBuilder.h.

Constructor & Destructor Documentation

RexInput::RexInput ( const RelAlgNode node,
const unsigned  in_index 
)
inline

Definition at line 325 of file RelAlgDagBuilder.h.

326  : RexAbstractInput(in_index), node_(node) {}
RexAbstractInput(const unsigned in_index)
const RelAlgNode * node_

Member Function Documentation

std::unique_ptr<RexInput> RexInput::deepCopy ( ) const
inline

Definition at line 341 of file RelAlgDagBuilder.h.

References RexAbstractInput::getIndex(), and node_.

Referenced by anonymous_namespace{RelAlgOptimizer.cpp}::RexProjectInputRedirector::visitInput(), RexDeepCopyVisitor::visitInput(), RexInputRenumber< bAllowMissing >::visitInput(), and anonymous_namespace{RelAlgOptimizer.cpp}::RexInputRenumberVisitor::visitInput().

341  {
342  return std::make_unique<RexInput>(node_, getIndex());
343  }
unsigned getIndex() const
const RelAlgNode * node_

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool RexInput::operator== ( const RexInput that) const
inline

Definition at line 335 of file RelAlgDagBuilder.h.

References RexAbstractInput::getIndex(), and getSourceNode().

335  {
336  return getSourceNode() == that.getSourceNode() && getIndex() == that.getIndex();
337  }
unsigned getIndex() const
const RelAlgNode * getSourceNode() const

+ Here is the call graph for this function:

void RexInput::setSourceNode ( const RelAlgNode node) const
inline

Definition at line 333 of file RelAlgDagBuilder.h.

References node_.

Referenced by RelLogicalUnion::copyAndRedirectSource(), anonymous_namespace{RelAlgOptimizer.cpp}::RexRebindInputsVisitor::visitInput(), anonymous_namespace{RelAlgDagBuilder.cpp}::RexRebindInputsVisitor::visitInput(), and anonymous_namespace{RelLeftDeepInnerJoin.cpp}::RebindRexInputsFromLeftDeepJoin::visitInput().

333 { node_ = node; }
const RelAlgNode * node_

+ Here is the caller graph for this function:

std::string RexInput::toString ( ) const
overridevirtual

Reimplemented from RexAbstractInput.

Definition at line 2689 of file RelAlgDagBuilder.cpp.

References cat(), RelScan::getFieldName(), RexAbstractInput::getIndex(), node_, and to_string().

2689  {
2690  const auto scan_node = dynamic_cast<const RelScan*>(node_);
2691  if (scan_node) {
2692  auto field_name = scan_node->getFieldName(getIndex());
2693  auto table_name = scan_node->getTableDescriptor()->tableName;
2694  return ::typeName(this) + "(" + table_name + "." + field_name + ")";
2695  }
2696  return cat(::typeName(this),
2697  "(node=",
2698  ::toString(node_),
2699  ", in_index=",
2701  ")");
2702 }
std::string cat(Ts &&...args)
std::string to_string(char const *&&v)
const std::string getFieldName(const size_t i) const
unsigned getIndex() const
std::string toString() const override
const RelAlgNode * node_

+ Here is the call graph for this function:

Member Data Documentation

const RelAlgNode* RexInput::node_
mutableprivate

Definition at line 346 of file RelAlgDagBuilder.h.

Referenced by deepCopy(), getSourceNode(), setSourceNode(), and toString().


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