OmniSciDB
c1a53651b2
|
#include <RelAlgDag.h>
Public Member Functions | |
RelTableFunction ()=default | |
RelTableFunction (const std::string &function_name, RelAlgInputs inputs, std::vector< std::string > &fields, std::vector< const Rex * > col_inputs, std::vector< std::unique_ptr< const RexScalar >> &table_func_inputs, std::vector< std::unique_ptr< const RexScalar >> &target_exprs) | |
RelTableFunction (RelTableFunction const &) | |
void | replaceInput (std::shared_ptr< const RelAlgNode > old_input, std::shared_ptr< const RelAlgNode > input) override |
std::string | getFunctionName () const |
size_t | size () const override |
const RexScalar * | getTargetExpr (size_t idx) const |
size_t | getTableFuncInputsSize () const |
size_t | getColInputsSize () const |
int32_t | countRexLiteralArgs () const |
const RexScalar * | getTableFuncInputAt (const size_t idx) const |
const RexScalar * | getTableFuncInputAtAndRelease (const size_t idx) |
void | setTableFuncInputs (std::vector< std::unique_ptr< const RexScalar >> &&exprs) |
std::string | getFieldName (const size_t idx) const |
const std::vector< std::string > & | getFields () const |
void | setFields (std::vector< std::string > &&fields) |
std::shared_ptr< RelAlgNode > | deepCopy () const override |
std::string | toString (RelRexToStringConfig config=RelRexToStringConfig::defaults()) const override |
size_t | toHash () const override |
![]() | |
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::string | function_name_ |
std::vector< std::string > | fields_ |
std::vector< const Rex * > | col_inputs_ |
std::vector< std::unique_ptr < const RexScalar > > | table_func_inputs_ |
std::vector< std::unique_ptr < const RexScalar > > | target_exprs_ |
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 2249 of file RelAlgDag.h.
|
default |
|
inline |
Definition at line 2254 of file RelAlgDag.h.
References RelAlgNode::inputs_.
RelTableFunction::RelTableFunction | ( | RelTableFunction const & | rhs | ) |
Definition at line 739 of file RelAlgDag.cpp.
References col_inputs_, anonymous_namespace{RelAlgDag.cpp}::reset_table_function_inputs(), and table_func_inputs_.
int32_t RelTableFunction::countRexLiteralArgs | ( | ) | const |
Definition at line 697 of file RelAlgDag.cpp.
References table_func_inputs_.
Referenced by RelAlgExecutor::createTableFunctionWorkUnit().
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 2318 of file RelAlgDag.h.
|
inline |
Definition at line 2286 of file RelAlgDag.h.
References col_inputs_.
Referenced by RelAlgExecutor::createTableFunctionWorkUnit().
|
inline |
|
inline |
|
inline |
Definition at line 2275 of file RelAlgDag.h.
References function_name_.
Referenced by RelAlgExecutor::createTableFunctionWorkUnit().
|
inline |
Definition at line 2290 of file RelAlgDag.h.
References CHECK_LT, and table_func_inputs_.
Referenced by RelAlgExecutor::createTableFunctionWorkUnit(), anonymous_namespace{RelAlgExecutor.cpp}::get_used_inputs(), anonymous_namespace{RelAlgExecutor.cpp}::scalar_at(), and RelRexDagVisitor::visit().
|
inline |
Definition at line 2295 of file RelAlgDag.h.
References CHECK_LT, and table_func_inputs_.
|
inline |
Definition at line 2284 of file RelAlgDag.h.
References table_func_inputs_.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::get_scalar_sources_size(), anonymous_namespace{RelAlgExecutor.cpp}::get_used_inputs(), and RelRexDagVisitor::visit().
|
inline |
Definition at line 2279 of file RelAlgDag.h.
References CHECK_LT, and target_exprs_.
|
overridevirtual |
Reimplemented from RelAlgNode.
Definition at line 685 of file RelAlgDag.cpp.
References RelAlgNode::replaceInput(), table_func_inputs_, and target_exprs_.
|
inline |
void RelTableFunction::setTableFuncInputs | ( | std::vector< std::unique_ptr< const RexScalar >> && | exprs | ) |
Definition at line 729 of file RelAlgDag.cpp.
References col_inputs_, anonymous_namespace{RelAlgDag.cpp}::reset_table_function_inputs(), and table_func_inputs_.
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 2277 of file RelAlgDag.h.
References target_exprs_.
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 2353 of file RelAlgDag.h.
References fields_, function_name_, RelAlgNode::hash_, RelAlgNode::inputs_, RelTableFunction(), table_func_inputs_, target_exprs_, and toString().
|
inlineoverridevirtual |
Implements RelAlgNode.
Definition at line 2322 of file RelAlgDag.h.
References cat(), fields_, function_name_, RelAlgNode::inputs_, table_func_inputs_, target_exprs_, to_string(), and typeName().
Referenced by toHash().
|
friend |
Definition at line 2384 of file RelAlgDag.h.
|
private |
Definition at line 2375 of file RelAlgDag.h.
Referenced by getColInputsSize(), RelTableFunction(), and setTableFuncInputs().
|
private |
Definition at line 2373 of file RelAlgDag.h.
Referenced by getFieldName(), getFields(), setFields(), toHash(), and toString().
|
private |
Definition at line 2372 of file RelAlgDag.h.
Referenced by getFunctionName(), toHash(), and toString().
|
private |
Definition at line 2378 of file RelAlgDag.h.
Referenced by countRexLiteralArgs(), getTableFuncInputAt(), getTableFuncInputAtAndRelease(), getTableFuncInputsSize(), RelTableFunction(), replaceInput(), setTableFuncInputs(), toHash(), and toString().
|
private |
Definition at line 2381 of file RelAlgDag.h.
Referenced by getTargetExpr(), replaceInput(), size(), toHash(), and toString().