OmniSciDB
c1a53651b2
|
#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 &) | |
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 | toHash () 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 () |
![]() | |
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 |
void | setIdInPlanTree (size_t id) const |
std::optional< size_t > | getIdInPlanTree () const |
bool | hasContextData () const |
const RaExecutionDesc * | getContextData () const |
const size_t | inputCount () const |
const RelAlgNode * | getInput (const size_t idx) 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 |
Private Attributes | |
std::unique_ptr< const RexScalar > | condition_ |
JoinType | join_type_ |
bool | hint_applied_ |
std::unique_ptr< Hints > | hints_ |
Friends | |
struct | RelAlgDagSerializer |
Additional Inherited Members | |
![]() | |
static void | resetRelAlgFirstId () noexcept |
![]() | |
RelAlgInputs | inputs_ |
unsigned | id_ |
std::optional< size_t > | id_in_plan_tree_ |
std::optional< size_t > | hash_ |
Definition at line 1451 of file RelAlgDag.h.
|
inline |
Definition at line 1454 of file RelAlgDag.h.
Referenced by toHash().
|
inline |
RelJoin::RelJoin | ( | RelJoin const & | rhs | ) |
Definition at line 600 of file RelAlgDag.cpp.
References addHint(), condition_, hint_applied_, hints_, and RexVisitorBase< T >::visit().
|
inline |
Definition at line 1524 of file RelAlgDag.h.
References ExplainedQueryHint::getHint(), hint_applied_, and hints_.
Referenced by RelJoin().
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1520 of file RelAlgDag.h.
|
inline |
|
inline |
Definition at line 1472 of file RelAlgDag.h.
References condition_.
Referenced by RelRexDagVisitor::visit(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalInputsVisitor::visitJoin().
|
inline |
|
inline |
Definition at line 1538 of file RelAlgDag.h.
References CHECK, hasHintEnabled(), hint_applied_, and hints_.
|
inline |
Definition at line 1470 of file RelAlgDag.h.
References join_type_.
Referenced by toHash().
|
inline |
|
inline |
Definition at line 1531 of file RelAlgDag.h.
References hint_applied_, and hints_.
Referenced by getHintInfo().
|
overridevirtual |
Reimplemented from RelAlgNode.
Definition at line 527 of file RelAlgDag.cpp.
References condition_, and RelAlgNode::replaceInput().
Referenced by create_left_deep_join().
|
inline |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1506 of file RelAlgDag.h.
References condition_, getJoinType(), RelAlgNode::hash_, HASH_N, RelAlgNode::inputs_, RelJoin(), and toString().
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1484 of file RelAlgDag.h.
References cat(), condition_, RelAlgNode::inputs_, join_type_, to_string(), and typeName().
Referenced by toHash().
|
friend |
Definition at line 1555 of file RelAlgDag.h.
|
mutableprivate |
Definition at line 1550 of file RelAlgDag.h.
Referenced by getAndReleaseCondition(), getCondition(), RelJoin(), replaceInput(), setCondition(), toHash(), and toString().
|
private |
Definition at line 1552 of file RelAlgDag.h.
Referenced by addHint(), getHintInfo(), hasHintEnabled(), and RelJoin().
|
private |
Definition at line 1553 of file RelAlgDag.h.
Referenced by addHint(), getDeliveredHints(), getHintInfo(), hasDeliveredHint(), hasHintEnabled(), and RelJoin().
|
private |
Definition at line 1551 of file RelAlgDag.h.
Referenced by getJoinType(), and toString().