OmniSciDB
085a039ca4
|
#include <RelAlgDagBuilder.h>
Public Member Functions | |
RelCompound (std::unique_ptr< const RexScalar > &filter_expr, const std::vector< const Rex * > &target_exprs, const size_t groupby_count, const std::vector< const RexAgg * > &agg_exprs, const std::vector< std::string > &fields, std::vector< std::unique_ptr< const RexScalar >> &scalar_sources, const bool is_agg, bool update_disguised_as_select=false, bool delete_disguised_as_select=false, bool varlen_update_required=false, TableDescriptor const *manipulation_target_table=nullptr, ColumnNameList target_columns=ColumnNameList()) | |
RelCompound (RelCompound const &) | |
void | replaceInput (std::shared_ptr< const RelAlgNode > old_input, std::shared_ptr< const RelAlgNode > input) override |
size_t | size () const override |
const RexScalar * | getFilterExpr () const |
void | setFilterExpr (std::unique_ptr< const RexScalar > &new_expr) |
const Rex * | getTargetExpr (const size_t i) const |
const std::vector< std::string > & | getFields () const |
const std::string | getFieldName (const size_t i) const |
void | setFields (std::vector< std::string > &&fields) |
const size_t | getScalarSourcesSize () const |
const RexScalar * | getScalarSource (const size_t i) const |
void | setScalarSources (std::vector< std::unique_ptr< const RexScalar >> &new_sources) |
const size_t | getGroupByCount () const |
bool | isAggregate () const |
size_t | getAggExprSize () const |
const RexAgg * | getAggExpr (size_t i) const |
std::string | toString (RelRexToStringConfig config=RelRexToStringConfig::defaults()) const override |
size_t | toHash () 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 (const 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 |
![]() | |
ModifyManipulationTarget (bool const update_via_select=false, bool const delete_via_select=false, bool const varlen_update_required=false, TableDescriptor const *table_descriptor=nullptr, ColumnNameList target_columns=ColumnNameList()) | |
void | setUpdateViaSelectFlag () const |
void | setDeleteViaSelectFlag () const |
void | setVarlenUpdateRequired (bool required) const |
void | forceRowwiseOutput () const |
TableDescriptor const * | getModifiedTableDescriptor () const |
void | setModifiedTableDescriptor (TableDescriptor const *td) const |
auto const | isUpdateViaSelect () const |
auto const | isDeleteViaSelect () const |
auto const | isVarlenUpdateRequired () const |
auto const | isRowwiseOutputForced () const |
void | setTargetColumns (ColumnNameList const &target_columns) const |
ColumnNameList const & | getTargetColumns () const |
template<typename VALIDATION_FUNCTOR > | |
bool | validateTargetColumns (VALIDATION_FUNCTOR validator) const |
Private Attributes | |
std::unique_ptr< const RexScalar > | filter_expr_ |
const size_t | groupby_count_ |
std::vector< std::unique_ptr < const RexAgg > > | agg_exprs_ |
std::vector< std::string > | fields_ |
const bool | is_agg_ |
std::vector< std::unique_ptr < const RexScalar > > | scalar_sources_ |
const std::vector< const Rex * > | target_exprs_ |
bool | hint_applied_ |
std::unique_ptr< Hints > | hints_ |
Additional Inherited Members | |
![]() | |
static void | resetRelAlgFirstId () noexcept |
![]() | |
RelAlgInputs | inputs_ |
const unsigned | id_ |
std::optional< size_t > | id_in_plan_tree_ |
std::optional< size_t > | hash_ |
Definition at line 1616 of file RelAlgDagBuilder.h.
|
inline |
Definition at line 1621 of file RelAlgDagBuilder.h.
References agg_exprs_, and CHECK_EQ.
Referenced by toHash().
RelCompound::RelCompound | ( | RelCompound const & | rhs | ) |
Definition at line 661 of file RelAlgDagBuilder.cpp.
References addHint(), filter_expr_, hint_applied_, hints_, and RexVisitorBase< T >::visit().
|
inline |
Definition at line 1701 of file RelAlgDagBuilder.h.
References ExplainedQueryHint::getHint(), hint_applied_, and hints_.
Referenced by RelCompound().
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1697 of file RelAlgDagBuilder.h.
|
inline |
Definition at line 1690 of file RelAlgDagBuilder.h.
References agg_exprs_.
|
inline |
Definition at line 1688 of file RelAlgDagBuilder.h.
References agg_exprs_.
|
inline |
Definition at line 1724 of file RelAlgDagBuilder.h.
References hints_.
Referenced by anonymous_namespace{RelAlgDagBuilder.cpp}::handle_query_hint().
|
inline |
|
inline |
|
inline |
Definition at line 1659 of file RelAlgDagBuilder.h.
References filter_expr_.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::get_used_inputs(), anonymous_namespace{RelAlgExecutor.cpp}::translate_quals(), RelRexDagVisitor::visit(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalInputsVisitor::visitCompound().
|
inline |
Definition at line 1684 of file RelAlgDagBuilder.h.
References groupby_count_.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::translate_groupby_exprs().
|
inline |
Definition at line 1715 of file RelAlgDagBuilder.h.
References CHECK, hasHintEnabled(), hint_applied_, and hints_.
|
inline |
Definition at line 1675 of file RelAlgDagBuilder.h.
References scalar_sources_.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::get_used_inputs(), anonymous_namespace{RelAlgExecutor.cpp}::scalar_at(), RelRexDagVisitor::visit(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalInputsVisitor::visitCompound().
|
inline |
Definition at line 1673 of file RelAlgDagBuilder.h.
References scalar_sources_.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::get_scalar_sources_size(), anonymous_namespace{RelAlgExecutor.cpp}::get_used_inputs(), RelRexDagVisitor::visit(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalInputsVisitor::visitCompound().
|
inline |
Definition at line 1665 of file RelAlgDagBuilder.h.
References target_exprs_.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::translate_targets(), and QueryPlanDagChecker::visit().
|
inline |
|
inline |
Definition at line 1708 of file RelAlgDagBuilder.h.
References hint_applied_, and hints_.
Referenced by getHintInfo().
|
inline |
Definition at line 1686 of file RelAlgDagBuilder.h.
References is_agg_.
Referenced by RelAlgExecutor::executeCompound(), anonymous_namespace{RelAlgExecutor.cpp}::translate_groupby_exprs(), and QueryPlanDagChecker::visit().
|
overridevirtual |
Reimplemented from RelAlgNode.
Definition at line 544 of file RelAlgDagBuilder.cpp.
References filter_expr_, RelAlgNode::replaceInput(), and scalar_sources_.
|
inline |
|
inline |
Definition at line 1661 of file RelAlgDagBuilder.h.
References filter_expr_.
|
inline |
Definition at line 1679 of file RelAlgDagBuilder.h.
References CHECK_EQ, and scalar_sources_.
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 1657 of file RelAlgDagBuilder.h.
References target_exprs_.
Referenced by RelAlgExecutor::createCompoundWorkUnit(), anonymous_namespace{RelAlgExecutor.cpp}::translate_targets(), and QueryPlanDagChecker::visit().
|
overridevirtual |
Implements RelAlgNode.
Definition at line 3264 of file RelAlgDagBuilder.cpp.
References agg_exprs_, fields_, filter_expr_, groupby_count_, RelAlgNode::hash_, HASH_N, is_agg_, RelCompound(), scalar_sources_, target_exprs_, and toString().
|
overridevirtual |
Implements RelAlgNode.
Definition at line 3238 of file RelAlgDagBuilder.cpp.
References agg_exprs_, cat(), fields_, filter_expr_, groupby_count_, is_agg_, scalar_sources_, target_exprs_, to_string(), and typeName().
Referenced by toHash().
|
private |
Definition at line 1729 of file RelAlgDagBuilder.h.
Referenced by getAggExpr(), getAggExprSize(), RelCompound(), toHash(), and toString().
|
private |
Definition at line 1730 of file RelAlgDagBuilder.h.
Referenced by getFieldName(), getFields(), setFields(), toHash(), and toString().
|
private |
Definition at line 1727 of file RelAlgDagBuilder.h.
Referenced by getFilterExpr(), RelCompound(), replaceInput(), setFilterExpr(), toHash(), and toString().
|
private |
Definition at line 1728 of file RelAlgDagBuilder.h.
Referenced by getGroupByCount(), toHash(), and toString().
|
private |
Definition at line 1736 of file RelAlgDagBuilder.h.
Referenced by addHint(), getHintInfo(), hasHintEnabled(), and RelCompound().
|
private |
Definition at line 1737 of file RelAlgDagBuilder.h.
Referenced by addHint(), getDeliveredHints(), getHintInfo(), hasDeliveredHint(), hasHintEnabled(), and RelCompound().
|
private |
Definition at line 1731 of file RelAlgDagBuilder.h.
Referenced by isAggregate(), toHash(), and toString().
|
private |
Definition at line 1733 of file RelAlgDagBuilder.h.
Referenced by getScalarSource(), getScalarSourcesSize(), replaceInput(), setScalarSources(), toHash(), and toString().
|
private |
Definition at line 1735 of file RelAlgDagBuilder.h.
Referenced by getTargetExpr(), size(), toHash(), and toString().