OmniSciDB
a5dc49c757
|
#include <RelAlgDag.h>
Public Member Functions | |
RelTranslatedJoin (const RelAlgNode *lhs, const RelAlgNode *rhs, const std::vector< const Analyzer::ColumnVar * > lhs_join_cols, const std::vector< const Analyzer::ColumnVar * > rhs_join_cols, const std::vector< std::shared_ptr< const Analyzer::Expr >> filter_ops, const RexScalar *outer_join_cond, const bool nested_loop, const JoinType join_type, const std::string &op_type, const std::string &qualifier, const std::string &op_typeinfo) | |
virtual void | acceptChildren (Visitor &v) const override |
virtual void | accept (Visitor &v, std::string name) const override |
std::string | toString (RelRexToStringConfig config=RelRexToStringConfig::defaults()) const override |
const RelAlgNode * | getLHS () const |
const RelAlgNode * | getRHS () const |
size_t | getFilterCondSize () const |
const std::vector < std::shared_ptr< const Analyzer::Expr > > | getFilterCond () const |
const RexScalar * | getOuterJoinCond () const |
std::string | getOpType () const |
std::string | getQualifier () const |
std::string | getOpTypeInfo () const |
size_t | size () const override |
JoinType | getJoinType () const |
const RexScalar * | getCondition () const |
const RexScalar * | getAndReleaseCondition () const |
void | setCondition (std::unique_ptr< const RexScalar > &condition) |
void | replaceInput (std::shared_ptr< const RelAlgNode > old_input, std::shared_ptr< const RelAlgNode > input) override |
std::shared_ptr< RelAlgNode > | deepCopy () const override |
std::string | getFieldName (const size_t i) const |
std::vector< const Analyzer::ColumnVar * > | getJoinCols (bool lhs) const |
bool | isNestedLoopQual () const |
virtual size_t | toHash () const override |
Public Member Functions inherited from RelAlgNode | |
RelAlgNode (RelAlgInputs inputs={}) | |
virtual | ~RelAlgNode () |
void | resetQueryExecutionState () |
void | setContextData (const RaExecutionDesc *context_data) const |
void | setOutputMetainfo (std::vector< TargetMetaInfo > targets_metainfo) const |
void | setQueryPlanDag (const std::string &extracted_query_plan_dag) const |
std::string | getQueryPlanDag () const |
size_t | getQueryPlanDagHash () const |
const std::vector < TargetMetaInfo > & | getOutputMetainfo () const |
unsigned | getId () const |
bool | hasContextData () const |
const RaExecutionDesc * | getContextData () const |
const size_t | inputCount () const |
const RelAlgNode * | getInput (const size_t idx) const |
const std::vector< RelAlgNode const * > | getInputs () const |
std::shared_ptr< const RelAlgNode > | getAndOwnInput (const size_t idx) const |
void | addManagedInput (std::shared_ptr< const RelAlgNode > input) |
bool | hasInput (const RelAlgNode *needle) const |
void | setRelNodeDagId (const size_t id) const |
size_t | getRelNodeDagId () const |
bool | isNop () const |
void | markAsNop () |
void | clearContextData () const |
Public Member Functions inherited from RelAlgDagNode | |
RelAlgDagNode () | |
virtual size_t | getStepNumber () const |
virtual void | setStepNumber (size_t step) const |
std::optional< size_t > | getIdInPlanTree () const |
void | setIdInPlanTree (size_t id) const |
Private Attributes | |
const RelAlgNode * | lhs_ |
const RelAlgNode * | rhs_ |
const std::vector< const Analyzer::ColumnVar * > | lhs_join_cols_ |
const std::vector< const Analyzer::ColumnVar * > | rhs_join_cols_ |
const std::vector < std::shared_ptr< const Analyzer::Expr > > | filter_ops_ |
const RexScalar * | outer_join_cond_ |
const bool | nested_loop_ |
const JoinType | join_type_ |
const std::string | op_type_ |
const std::string | qualifier_ |
const std::string | op_typeinfo_ |
Friends | |
std::size_t | hash_value (RelTranslatedJoin const &) |
Additional Inherited Members | |
Static Public Member Functions inherited from RelAlgNode | |
static void | resetRelAlgFirstId () noexcept |
Protected Attributes inherited from RelAlgNode | |
RelAlgInputs | inputs_ |
unsigned | id_ |
std::optional< size_t > | hash_ |
Protected Attributes inherited from RelAlgDagNode | |
size_t | step_ {0} |
std::optional< size_t > | id_in_plan_tree_ |
Definition at line 1741 of file RelAlgDag.h.
|
inline |
Definition at line 1743 of file RelAlgDag.h.
|
inlineoverridevirtual |
Implements RelAlgDagNode.
Definition at line 1782 of file RelAlgDag.h.
References acceptChildren(), and RelAlgDagNode::Visitor::visit().
Referenced by TableFunctionsFactory_node.PrintNode::__str__().
|
inlineoverridevirtual |
Implements RelAlgDagNode.
Definition at line 1766 of file RelAlgDag.h.
References RelAlgDagNode::accept(), RelAlgNode::getInputs(), getLHS(), getOuterJoinCond(), getRHS(), and anonymous_namespace{Utm.h}::n.
Referenced by accept().
|
inlineoverridevirtual |
|
inline |
|
inline |
std::string RelTranslatedJoin::getFieldName | ( | const size_t | i | ) | const |
|
inline |
Definition at line 1810 of file RelAlgDag.h.
References filter_ops_.
|
inline |
Definition at line 1809 of file RelAlgDag.h.
References filter_ops_.
|
inline |
Definition at line 1837 of file RelAlgDag.h.
References lhs_join_cols_, and rhs_join_cols_.
Referenced by QueryPlanDagExtractor::handleTranslatedJoin().
|
inline |
|
inline |
Definition at line 1807 of file RelAlgDag.h.
References lhs_.
Referenced by acceptChildren(), QueryPlanDagExtractor::handleTranslatedJoin(), and RelRexDagVisitor::visit().
|
inline |
|
inline |
|
inline |
Definition at line 1813 of file RelAlgDag.h.
References outer_join_cond_.
Referenced by acceptChildren(), and RelRexDagVisitor::visit().
|
inline |
|
inline |
Definition at line 1808 of file RelAlgDag.h.
References rhs_.
Referenced by acceptChildren(), QueryPlanDagExtractor::handleTranslatedJoin(), and RelRexDagVisitor::visit().
|
inline |
Definition at line 1843 of file RelAlgDag.h.
References nested_loop_.
Referenced by QueryPlanDagExtractor::handleTranslatedJoin().
|
inlineoverridevirtual |
|
inline |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1845 of file RelAlgDag.h.
References hash_value.
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1788 of file RelAlgDag.h.
References filter_ops_, join_type_, lhs_join_cols_, nested_loop_, op_type_, op_typeinfo_, outer_join_cond_, qualifier_, rhs_join_cols_, RelAlgDagNode::toString(), and typeName().
|
friend |
Definition at line 3736 of file RelAlgDag.cpp.
Referenced by toHash().
|
private |
Definition at line 1854 of file RelAlgDag.h.
Referenced by getFilterCond(), getFilterCondSize(), hash_value(), and toString().
|
private |
Definition at line 1857 of file RelAlgDag.h.
Referenced by getJoinType(), hash_value(), and toString().
|
private |
Definition at line 1850 of file RelAlgDag.h.
Referenced by getLHS(), and hash_value().
|
private |
Definition at line 1852 of file RelAlgDag.h.
Referenced by getJoinCols(), and toString().
|
private |
Definition at line 1856 of file RelAlgDag.h.
Referenced by hash_value(), isNestedLoopQual(), and toString().
|
private |
Definition at line 1858 of file RelAlgDag.h.
Referenced by getOpType(), hash_value(), and toString().
|
private |
Definition at line 1860 of file RelAlgDag.h.
Referenced by getOpTypeInfo(), hash_value(), and toString().
|
private |
Definition at line 1855 of file RelAlgDag.h.
Referenced by getOuterJoinCond(), hash_value(), and toString().
|
private |
Definition at line 1859 of file RelAlgDag.h.
Referenced by getQualifier(), hash_value(), and toString().
|
private |
Definition at line 1851 of file RelAlgDag.h.
Referenced by getRHS(), and hash_value().
|
private |
Definition at line 1853 of file RelAlgDag.h.
Referenced by getJoinCols(), and toString().