OmniSciDB
a5dc49c757
|
#include <RelAlgDag.h>
Public Member Functions | |
RelAggregate () | |
RelAggregate (const size_t groupby_count, std::vector< std::unique_ptr< const RexAgg >> &agg_exprs, const std::vector< std::string > &fields, std::shared_ptr< const RelAlgNode > input) | |
RelAggregate (RelAggregate const &) | |
virtual void | acceptChildren (Visitor &v) const override |
virtual void | accept (Visitor &v, std::string name) const override |
size_t | size () const override |
const size_t | getGroupByCount () const |
const size_t | getAggExprsCount () const |
const std::vector< std::string > & | getFields () const |
void | setFields (std::vector< std::string > &&new_fields) |
const std::string | getFieldName (const size_t i) const |
std::vector< const RexAgg * > | getAggregatesAndRelease () |
std::vector< std::unique_ptr < const RexAgg > > | getAggExprsAndRelease () |
const std::vector < std::unique_ptr< const RexAgg > > & | getAggExprs () const |
void | setAggExprs (std::vector< std::unique_ptr< const RexAgg >> &agg_exprs) |
std::string | toString (RelRexToStringConfig config=RelRexToStringConfig::defaults()) 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 |
virtual void | replaceInput (std::shared_ptr< const RelAlgNode > old_input, std::shared_ptr< const RelAlgNode > input) |
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 | |
size_t | groupby_count_ |
std::vector< std::unique_ptr < const RexAgg > > | agg_exprs_ |
std::vector< std::string > | fields_ |
bool | hint_applied_ |
std::unique_ptr< Hints > | hints_ |
Friends | |
struct | RelAlgDagSerializer |
std::size_t | hash_value (RelAggregate 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 1468 of file RelAlgDag.h.
|
inline |
Definition at line 1471 of file RelAlgDag.h.
|
inline |
Definition at line 1474 of file RelAlgDag.h.
References RelAlgNode::inputs_.
RelAggregate::RelAggregate | ( | RelAggregate const & | rhs | ) |
Definition at line 584 of file RelAlgDag.cpp.
References addHint(), agg_exprs_, hint_applied_, and hints_.
|
inlineoverridevirtual |
Implements RelAlgDagNode.
Definition at line 1500 of file RelAlgDag.h.
References acceptChildren(), and RelAlgDagNode::Visitor::visit().
Referenced by TableFunctionsFactory_node.PrintNode::__str__().
|
inlineoverridevirtual |
Implements RelAlgDagNode.
Definition at line 1488 of file RelAlgDag.h.
References getAggExprs(), RelAlgNode::getInputs(), and anonymous_namespace{Utm.h}::n.
Referenced by accept().
|
inline |
Definition at line 1576 of file RelAlgDag.h.
References ExplainedQueryHint::getHint(), hint_applied_, and hints_.
Referenced by RelAggregate().
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1572 of file RelAlgDag.h.
|
inline |
Definition at line 1531 of file RelAlgDag.h.
References agg_exprs_.
Referenced by acceptChildren(), anonymous_namespace{RelAlgExecutor.cpp}::get_used_inputs(), and anonymous_namespace{RelAlgExecutor.cpp}::translate_targets().
|
inline |
Definition at line 1527 of file RelAlgDag.h.
References agg_exprs_.
|
inline |
Definition at line 1510 of file RelAlgDag.h.
References agg_exprs_.
|
inline |
Definition at line 1519 of file RelAlgDag.h.
References agg_exprs_, and run_benchmark_import::result.
|
inline |
Definition at line 1599 of file RelAlgDag.h.
References hints_.
Referenced by anonymous_namespace{RelAlgDag.cpp}::handle_query_hint().
|
inline |
|
inline |
|
inline |
Definition at line 1508 of file RelAlgDag.h.
References groupby_count_.
Referenced by anonymous_namespace{RelAlgDag.cpp}::add_window_function_pre_project(), anonymous_namespace{RelAlgExecutor.cpp}::get_used_inputs(), and anonymous_namespace{RelAlgExecutor.cpp}::translate_groupby_exprs().
|
inline |
Definition at line 1590 of file RelAlgDag.h.
References CHECK, hasHintEnabled(), hint_applied_, and hints_.
|
inline |
|
inline |
Definition at line 1583 of file RelAlgDag.h.
References hint_applied_, and hints_.
Referenced by getHintInfo().
|
inline |
Definition at line 1535 of file RelAlgDag.h.
References agg_exprs_.
|
inline |
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1506 of file RelAlgDag.h.
References agg_exprs_, and groupby_count_.
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1601 of file RelAlgDag.h.
References hash_value.
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1539 of file RelAlgDag.h.
References agg_exprs_, cat(), fields_, groupby_count_, RelAlgNode::inputs_, to_string(), and typeName().
|
friend |
|
friend |
Definition at line 1612 of file RelAlgDag.h.
|
private |
Definition at line 1607 of file RelAlgDag.h.
Referenced by getAggExprs(), getAggExprsAndRelease(), getAggExprsCount(), getAggregatesAndRelease(), hash_value(), RelAggregate(), setAggExprs(), size(), and toString().
|
private |
Definition at line 1608 of file RelAlgDag.h.
Referenced by getFieldName(), getFields(), hash_value(), setFields(), and toString().
|
private |
Definition at line 1606 of file RelAlgDag.h.
Referenced by getGroupByCount(), hash_value(), size(), and toString().
|
private |
Definition at line 1609 of file RelAlgDag.h.
Referenced by addHint(), getHintInfo(), hasHintEnabled(), and RelAggregate().
|
private |
Definition at line 1610 of file RelAlgDag.h.
Referenced by addHint(), getDeliveredHints(), getHintInfo(), hasDeliveredHint(), hasHintEnabled(), and RelAggregate().