OmniSciDB
a5dc49c757
|
#include <RelAlgDag.h>
Public Member Functions | |
RelSort () | |
RelSort (const std::vector< SortField > &collation, std::optional< size_t > limit, const size_t offset, std::shared_ptr< const RelAlgNode > input) | |
virtual void | acceptChildren (Visitor &v) const override |
virtual void | accept (Visitor &v, std::string name) const override |
bool | operator== (const RelSort &that) const |
size_t | collationCount () const |
SortField | getCollation (const size_t i) const |
void | setCollation (std::vector< SortField > &&collation) |
bool | isEmptyResult () const |
bool | isLimitDelivered () const |
std::optional< size_t > | getLimit () const |
size_t | getOffset () const |
std::string | toString (RelRexToStringConfig config=RelRexToStringConfig::defaults()) const override |
size_t | size () const override |
std::shared_ptr< RelAlgNode > | deepCopy () const override |
virtual size_t | toHash () const override |
std::list< Analyzer::OrderEntry > | getOrderEntries () const |
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 Member Functions | |
bool | hasEquivCollationOf (const RelSort &that) const |
Private Attributes | |
std::vector< SortField > | collation_ |
std::optional< size_t > | limit_ |
size_t | offset_ |
Friends | |
struct | RelAlgDagSerializer |
std::size_t | hash_value (RelSort 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 2181 of file RelAlgDag.h.
|
inline |
Definition at line 2184 of file RelAlgDag.h.
|
inline |
|
inlineoverridevirtual |
Implements RelAlgDagNode.
Definition at line 2201 of file RelAlgDag.h.
References acceptChildren(), and RelAlgDagNode::Visitor::visit().
Referenced by TableFunctionsFactory_node.PrintNode::__str__().
|
inlineoverridevirtual |
Implements RelAlgDagNode.
Definition at line 2194 of file RelAlgDag.h.
References RelAlgNode::getInputs(), and anonymous_namespace{Utm.h}::n.
Referenced by accept().
|
inline |
Definition at line 2211 of file RelAlgDag.h.
References collation_.
Referenced by RelAlgExecutor::createSortInputWorkUnit(), and RelAlgExecutor::executeSort().
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 2258 of file RelAlgDag.h.
|
inline |
|
inline |
Definition at line 2226 of file RelAlgDag.h.
References limit_.
Referenced by SortInfo::createFromSortNode(), RelAlgExecutor::createSortInputWorkUnit(), and RelAlgExecutor::executeSort().
|
inline |
Definition at line 2228 of file RelAlgDag.h.
References offset_.
Referenced by SortInfo::createFromSortNode(), RelAlgExecutor::createSortInputWorkUnit(), and RelAlgExecutor::executeSort().
|
inline |
Definition at line 2264 of file RelAlgDag.h.
References collation_, Descending, First, and run_benchmark_import::result.
Referenced by SortInfo::createFromSortNode(), and RelAlgExecutor::executeSort().
|
private |
Definition at line 803 of file RelAlgDag.cpp.
References collation_, and anonymous_namespace{RelAlgDag.cpp}::get_equiv_cols().
Referenced by operator==().
|
inline |
Definition at line 2222 of file RelAlgDag.h.
References limit_.
Referenced by RelAlgExecutor::executeSort().
|
inline |
|
inline |
Definition at line 2207 of file RelAlgDag.h.
References hasEquivCollationOf(), limit_, and offset_.
|
inline |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 2230 of file RelAlgDag.h.
References cat(), collation_, RelAlgNode::inputs_, limit_, offset_, to_string(), and typeName().
|
friend |
|
friend |
Definition at line 2284 of file RelAlgDag.h.
|
private |
Definition at line 2278 of file RelAlgDag.h.
Referenced by collationCount(), getCollation(), getOrderEntries(), hasEquivCollationOf(), hash_value(), setCollation(), and toString().
|
private |
Definition at line 2279 of file RelAlgDag.h.
Referenced by getLimit(), hash_value(), isEmptyResult(), isLimitDelivered(), operator==(), and toString().
|
private |
Definition at line 2280 of file RelAlgDag.h.
Referenced by getOffset(), hash_value(), operator==(), and toString().