OmniSciDB
a5dc49c757
|
#include <RelAlgDag.h>
Public Member Functions | |
RelJoin () | |
RelJoin (std::shared_ptr< const RelAlgNode > lhs, std::shared_ptr< const RelAlgNode > rhs, std::unique_ptr< const RexScalar > &condition, const JoinType join_type) | |
RelJoin (RelJoin const &) | |
virtual void | acceptChildren (Visitor &v) const override |
virtual void | accept (Visitor &v, std::string name) 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::string | toString (RelRexToStringConfig config=RelRexToStringConfig::defaults()) const override |
size_t | size () const override |
std::shared_ptr< RelAlgNode > | deepCopy () const override |
void | addHint (const ExplainedQueryHint &hint_explained) |
const bool | hasHintEnabled (QueryHint candidate_hint) const |
const ExplainedQueryHint & | getHintInfo (QueryHint hint) const |
bool | hasDeliveredHint () |
Hints * | getDeliveredHints () |
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 | |
std::unique_ptr< const RexScalar > | condition_ |
JoinType | join_type_ |
bool | hint_applied_ |
std::unique_ptr< Hints > | hints_ |
Friends | |
struct | RelAlgDagSerializer |
std::size_t | hash_value (RelJoin 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 1615 of file RelAlgDag.h.
|
inline |
Definition at line 1618 of file RelAlgDag.h.
|
inline |
RelJoin::RelJoin | ( | RelJoin const & | rhs | ) |
Definition at line 601 of file RelAlgDag.cpp.
References addHint(), condition_, hint_applied_, hints_, and RexVisitorBase< T >::visit().
|
inlineoverridevirtual |
Implements RelAlgDagNode.
Definition at line 1644 of file RelAlgDag.h.
References acceptChildren(), and RelAlgDagNode::Visitor::visit().
Referenced by TableFunctionsFactory_node.PrintNode::__str__().
|
inlineoverridevirtual |
Implements RelAlgDagNode.
Definition at line 1634 of file RelAlgDag.h.
References RelAlgDagNode::accept(), getCondition(), RelAlgNode::getInputs(), and anonymous_namespace{Utm.h}::n.
Referenced by accept().
|
inline |
Definition at line 1701 of file RelAlgDag.h.
References ExplainedQueryHint::getHint(), hint_applied_, and hints_.
Referenced by RelJoin().
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1697 of file RelAlgDag.h.
|
inline |
|
inline |
Definition at line 1652 of file RelAlgDag.h.
References condition_.
Referenced by acceptChildren(), RelRexDagVisitor::visit(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalInputsVisitor::visitJoin().
|
inline |
|
inline |
Definition at line 1715 of file RelAlgDag.h.
References CHECK, hasHintEnabled(), hint_applied_, and hints_.
|
inline |
Definition at line 1650 of file RelAlgDag.h.
References join_type_.
Referenced by hash_value().
|
inline |
|
inline |
Definition at line 1708 of file RelAlgDag.h.
References hint_applied_, and hints_.
Referenced by getHintInfo().
|
overridevirtual |
Reimplemented from RelAlgNode.
Definition at line 528 of file RelAlgDag.cpp.
References condition_, and RelAlgNode::replaceInput().
Referenced by create_left_deep_join().
|
inline |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1664 of file RelAlgDag.h.
References cat(), condition_, RelAlgNode::inputs_, join_type_, to_string(), and typeName().
|
friend |
Definition at line 3725 of file RelAlgDag.cpp.
Referenced by toHash().
|
friend |
Definition at line 1736 of file RelAlgDag.h.
|
mutableprivate |
Definition at line 1731 of file RelAlgDag.h.
Referenced by getAndReleaseCondition(), getCondition(), hash_value(), RelJoin(), replaceInput(), setCondition(), and toString().
|
private |
Definition at line 1733 of file RelAlgDag.h.
Referenced by addHint(), getHintInfo(), hasHintEnabled(), and RelJoin().
|
private |
Definition at line 1734 of file RelAlgDag.h.
Referenced by addHint(), getDeliveredHints(), getHintInfo(), hasDeliveredHint(), hasHintEnabled(), and RelJoin().
|
private |
Definition at line 1732 of file RelAlgDag.h.
Referenced by getJoinType(), and toString().