OmniSciDB
a5dc49c757
|
#include <Analyzer.h>
Public Member Functions | |
FunctionOper (const SQLTypeInfo &ti, const std::string &name, const std::vector< std::shared_ptr< Analyzer::Expr >> &args) | |
std::string | getName () const |
size_t | getArity () const |
const Analyzer::Expr * | getArg (const size_t i) const |
std::shared_ptr< Analyzer::Expr > | getOwnArg (const size_t i) const |
std::shared_ptr< Analyzer::Expr > | deep_copy () const override |
void | collect_rte_idx (std::set< int > &rte_idx_set) const override |
void | collect_column_var (std::set< const ColumnVar *, bool(*)(const ColumnVar *, const ColumnVar *)> &colvar_set, bool include_agg) const override |
void | find_expr (std::function< bool(const Expr *)> f, std::list< const Expr * > &expr_list) const override |
bool | operator== (const Expr &rhs) const override |
std::string | toString () const override |
Public Member Functions inherited from Analyzer::Expr | |
Expr (SQLTypes t, bool notnull) | |
Expr (SQLTypes t, int d, bool notnull) | |
Expr (SQLTypes t, int d, int s, bool notnull) | |
Expr (const SQLTypeInfo &ti, bool has_agg=false) | |
virtual | ~Expr () |
std::shared_ptr< Analyzer::Expr > | get_shared_ptr () |
const SQLTypeInfo & | get_type_info () const |
void | set_type_info (const SQLTypeInfo &ti) |
bool | get_contains_agg () const |
void | set_contains_agg (bool a) |
virtual std::shared_ptr < Analyzer::Expr > | add_cast (const SQLTypeInfo &new_type_info) |
virtual void | check_group_by (const std::list< std::shared_ptr< Analyzer::Expr >> &groupby) const |
virtual std::shared_ptr < Analyzer::Expr > | normalize_simple_predicate (int &rte_idx) const |
virtual void | group_predicates (std::list< const Expr * > &scan_predicates, std::list< const Expr * > &join_predicates, std::list< const Expr * > &const_predicates) const |
virtual size_t | get_num_column_vars (const bool include_agg) const |
virtual std::shared_ptr < Analyzer::Expr > | rewrite_with_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const |
virtual std::shared_ptr < Analyzer::Expr > | rewrite_with_child_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const |
virtual std::shared_ptr < Analyzer::Expr > | rewrite_agg_to_var (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const |
virtual void | print () const |
virtual void | add_unique (std::list< const Expr * > &expr_list) const |
std::shared_ptr< Analyzer::Expr > | decompress () |
virtual void | get_domain (DomainSet &domain_set) const |
Private Attributes | |
const std::string | name_ |
const std::vector < std::shared_ptr < Analyzer::Expr > > | args_ |
Additional Inherited Members | |
Protected Attributes inherited from Analyzer::Expr | |
SQLTypeInfo | type_info |
bool | contains_agg |
Definition at line 2737 of file Analyzer.h.
|
inline |
Definition at line 2739 of file Analyzer.h.
|
overridevirtual |
Reimplemented from Analyzer::Expr.
Definition at line 3583 of file Analyzer.cpp.
References getArg(), and getArity().
|
overridevirtual |
Reimplemented from Analyzer::Expr.
Definition at line 3521 of file Analyzer.cpp.
References getArg(), and getArity().
|
overridevirtual |
Implements Analyzer::Expr.
Reimplemented in Analyzer::FunctionOperWithCustomTypeHandling.
Definition at line 3824 of file Analyzer.cpp.
References getArg(), getArity(), getName(), and Analyzer::Expr::type_info.
|
overridevirtual |
Reimplemented from Analyzer::Expr.
Definition at line 3469 of file Analyzer.cpp.
References Analyzer::Expr::add_unique(), args_, and f().
|
inline |
Definition at line 2748 of file Analyzer.h.
References args_, and CHECK_LT.
Referenced by anonymous_namespace{ExtensionsIR.cpp}::call_requires_custom_type_handling(), CodeGenerator::codegenFunctionOper(), CodeGenerator::codegenFunctionOperCastArgs(), CodeGenerator::codegenFunctionOperNullArg(), CodeGenerator::codegenFunctionOperWithCustomTypeHandling(), collect_column_var(), collect_rte_idx(), deep_copy(), Analyzer::FunctionOperWithCustomTypeHandling::deep_copy(), anonymous_namespace{ExtensionsIR.cpp}::ext_func_call_requires_nullcheck(), anonymous_namespace{FromTableReordering.cpp}::get_join_qual_cost(), RowFunctionManager::getDictDbId(), RowFunctionManager::getDictId(), operator==(), Analyzer::FunctionOperWithCustomTypeHandling::operator==(), rewrite_to_date_trunc(), GeospatialFunctionFinder::visitFunctionOper(), ScalarExprToSql::visitFunctionOper(), DeepCopyVisitor::visitFunctionOper(), ScalarExprVisitor< std::set< shared::TableKey > >::visitFunctionOper(), JoinCoveredQualVisitor::visitFunctionOper(), and DeepCopyVisitor::visitFunctionOperWithCustomTypeHandling().
|
inline |
Definition at line 2746 of file Analyzer.h.
References args_.
Referenced by bind_function(), anonymous_namespace{ExtensionsIR.cpp}::call_requires_custom_type_handling(), CodeGenerator::codegenFunctionOper(), CodeGenerator::codegenFunctionOperCastArgs(), CodeGenerator::codegenFunctionOperNullArg(), CodeGenerator::codegenFunctionOperWithCustomTypeHandling(), collect_column_var(), collect_rte_idx(), deep_copy(), Analyzer::FunctionOperWithCustomTypeHandling::deep_copy(), anonymous_namespace{ExtensionsIR.cpp}::ext_func_call_requires_nullcheck(), RowFunctionManager::getDictDbId(), RowFunctionManager::getDictId(), operator==(), Analyzer::FunctionOperWithCustomTypeHandling::operator==(), rewrite_to_date_trunc(), GeospatialFunctionFinder::visitFunctionOper(), ScalarExprToSql::visitFunctionOper(), DeepCopyVisitor::visitFunctionOper(), ScalarExprVisitor< std::set< shared::TableKey > >::visitFunctionOper(), and DeepCopyVisitor::visitFunctionOperWithCustomTypeHandling().
|
inline |
Definition at line 2744 of file Analyzer.h.
References name_.
Referenced by CodeGenerator::beginArgsNullcheck(), bind_function(), CodeGenerator::codegenFunctionOper(), CodeGenerator::codegenFunctionOperWithCustomTypeHandling(), convert_bbox_intersect_join(), deep_copy(), Analyzer::FunctionOperWithCustomTypeHandling::deep_copy(), CodeGenerator::endArgsNullcheck(), operator==(), Analyzer::FunctionOperWithCustomTypeHandling::operator==(), rewrite_to_date_trunc(), GeospatialFunctionFinder::visitFunctionOper(), ScalarExprToSql::visitFunctionOper(), DeepCopyVisitor::visitFunctionOper(), JoinCoveredQualVisitor::visitFunctionOper(), and DeepCopyVisitor::visitFunctionOperWithCustomTypeHandling().
|
inline |
Definition at line 2753 of file Analyzer.h.
References args_, and CHECK_LT.
Referenced by bind_function().
|
overridevirtual |
Implements Analyzer::Expr.
Reimplemented in Analyzer::FunctionOperWithCustomTypeHandling.
Definition at line 3864 of file Analyzer.cpp.
References Analyzer::Expr::get_type_info(), getArg(), getArity(), getName(), and Analyzer::Expr::type_info.
|
overridevirtual |
Implements Analyzer::Expr.
Definition at line 3895 of file Analyzer.cpp.
|
private |
Definition at line 2772 of file Analyzer.h.
Referenced by find_expr(), getArg(), getArity(), getOwnArg(), and toString().
|
private |
Definition at line 2771 of file Analyzer.h.
Referenced by getName(), and toString().