OmniSciDB
85c2d10cdc
|
#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 |
bool | operator== (const Expr &rhs) const override |
std::string | toString () const override |
![]() | |
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 void | collect_rte_idx (std::set< int > &rte_idx_set) const |
virtual void | collect_column_var (std::set< const ColumnVar *, bool(*)(const ColumnVar *, const ColumnVar *)> &colvar_set, 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 |
virtual void | find_expr (bool(*f)(const Expr *), 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 | |
![]() | |
SQLTypeInfo | type_info |
bool | contains_agg |
Definition at line 1351 of file Analyzer.h.
|
inline |
Definition at line 1353 of file Analyzer.h.
|
overridevirtual |
Implements Analyzer::Expr.
Reimplemented in Analyzer::FunctionOperWithCustomTypeHandling.
Definition at line 3171 of file Analyzer.cpp.
References getArg(), getArity(), getName(), i, and Analyzer::Expr::type_info.
|
inline |
Definition at line 1362 of file Analyzer.h.
References args_, CHECK_LT, and i.
Referenced by anonymous_namespace{ExtensionsIR.cpp}::call_requires_custom_type_handling(), CodeGenerator::codegenFunctionOper(), CodeGenerator::codegenFunctionOperCastArgs(), CodeGenerator::codegenFunctionOperNullArg(), CodeGenerator::codegenFunctionOperWithCustomTypeHandling(), deep_copy(), Analyzer::FunctionOperWithCustomTypeHandling::deep_copy(), anonymous_namespace{ExtensionsIR.cpp}::ext_func_call_requires_nullcheck(), anonymous_namespace{FromTableReordering.cpp}::get_join_qual_cost(), operator==(), Analyzer::FunctionOperWithCustomTypeHandling::operator==(), rewrite_to_date_trunc(), ScalarExprToSql::visitFunctionOper(), DeepCopyVisitor::visitFunctionOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >::visitFunctionOper(), JoinCoveredQualVisitor::visitFunctionOper(), and DeepCopyVisitor::visitFunctionOperWithCustomTypeHandling().
|
inline |
Definition at line 1360 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(), deep_copy(), Analyzer::FunctionOperWithCustomTypeHandling::deep_copy(), anonymous_namespace{ExtensionsIR.cpp}::ext_func_call_requires_nullcheck(), operator==(), Analyzer::FunctionOperWithCustomTypeHandling::operator==(), rewrite_to_date_trunc(), ScalarExprToSql::visitFunctionOper(), DeepCopyVisitor::visitFunctionOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >::visitFunctionOper(), and DeepCopyVisitor::visitFunctionOperWithCustomTypeHandling().
|
inline |
Definition at line 1358 of file Analyzer.h.
References name_.
Referenced by CodeGenerator::beginArgsNullcheck(), bind_function(), CodeGenerator::codegenFunctionOper(), CodeGenerator::codegenFunctionOperWithCustomTypeHandling(), deep_copy(), Analyzer::FunctionOperWithCustomTypeHandling::deep_copy(), CodeGenerator::endArgsNullcheck(), operator==(), Analyzer::FunctionOperWithCustomTypeHandling::operator==(), rewrite_to_date_trunc(), ScalarExprToSql::visitFunctionOper(), DeepCopyVisitor::visitFunctionOper(), JoinCoveredQualVisitor::visitFunctionOper(), and DeepCopyVisitor::visitFunctionOperWithCustomTypeHandling().
|
inline |
Definition at line 1367 of file Analyzer.h.
References args_, CHECK_LT, and i.
Referenced by bind_function().
Implements Analyzer::Expr.
Reimplemented in Analyzer::FunctionOperWithCustomTypeHandling.
Definition at line 3179 of file Analyzer.cpp.
References Analyzer::Expr::get_type_info(), getArg(), getArity(), getName(), i, and Analyzer::Expr::type_info.
|
overridevirtual |
Implements Analyzer::Expr.
Definition at line 3201 of file Analyzer.cpp.
|
private |
Definition at line 1379 of file Analyzer.h.
Referenced by getArg(), getArity(), getOwnArg(), and toString().
|
private |
Definition at line 1378 of file Analyzer.h.
Referenced by getName(), and toString().