OmniSciDB
a5dc49c757
|
#include <Analyzer.h>
Public Member Functions | |
DateaddExpr (const SQLTypeInfo &ti, const DateaddField f, const std::shared_ptr< Analyzer::Expr > number, const std::shared_ptr< Analyzer::Expr > datetime) | |
DateaddField | get_field () const |
const Expr * | get_number_expr () const |
const Expr * | get_datetime_expr () const |
void | set_fixed_encoding_null_val () const |
bool | use_fixed_encoding_null_val () const |
std::shared_ptr< Analyzer::Expr > | deep_copy () const override |
void | check_group_by (const std::list< std::shared_ptr< Analyzer::Expr >> &groupby) const override |
void | group_predicates (std::list< const Expr * > &scan_predicates, std::list< const Expr * > &join_predicates, std::list< const Expr * > &const_predicates) 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 |
std::shared_ptr< Analyzer::Expr > | rewrite_with_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const override |
std::shared_ptr< Analyzer::Expr > | rewrite_with_child_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const override |
std::shared_ptr< Analyzer::Expr > | rewrite_agg_to_var (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const override |
bool | operator== (const Expr &rhs) const override |
std::string | toString () const override |
void | find_expr (std::function< bool(const Expr *)> f, std::list< const Expr * > &expr_list) 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 std::shared_ptr < Analyzer::Expr > | normalize_simple_predicate (int &rte_idx) const |
virtual size_t | get_num_column_vars (const bool include_agg) 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 DateaddField | field_ |
const std::shared_ptr < Analyzer::Expr > | number_ |
const std::shared_ptr < Analyzer::Expr > | datetime_ |
bool | use_fixed_encoding_null_val_ |
Additional Inherited Members | |
Protected Attributes inherited from Analyzer::Expr | |
SQLTypeInfo | type_info |
bool | contains_agg |
Definition at line 1465 of file Analyzer.h.
|
inline |
Definition at line 1467 of file Analyzer.h.
|
overridevirtual |
Reimplemented from Analyzer::Expr.
Definition at line 3608 of file Analyzer.cpp.
References datetime_, and number_.
|
overridevirtual |
Reimplemented from Analyzer::Expr.
Definition at line 3546 of file Analyzer.cpp.
References datetime_, and number_.
|
overridevirtual |
Reimplemented from Analyzer::Expr.
Definition at line 3494 of file Analyzer.cpp.
References datetime_, and number_.
|
overridevirtual |
Implements Analyzer::Expr.
Definition at line 215 of file Analyzer.cpp.
References datetime_, field_, number_, and Analyzer::Expr::type_info.
|
overridevirtual |
Reimplemented from Analyzer::Expr.
Definition at line 3440 of file Analyzer.cpp.
References Analyzer::Expr::add_unique(), datetime_, f(), and number_.
|
inline |
Definition at line 1478 of file Analyzer.h.
References datetime_.
Referenced by CodeGenerator::codegen(), operator==(), DeepCopyVisitor::visitDateaddExpr(), and ScalarExprVisitor< std::set< shared::TableKey > >::visitDateaddExpr().
|
inline |
Definition at line 1476 of file Analyzer.h.
References field_.
Referenced by CodeGenerator::codegen(), operator==(), and DeepCopyVisitor::visitDateaddExpr().
|
inline |
Definition at line 1477 of file Analyzer.h.
References number_.
Referenced by CodeGenerator::codegen(), operator==(), DeepCopyVisitor::visitDateaddExpr(), and ScalarExprVisitor< std::set< shared::TableKey > >::visitDateaddExpr().
|
overridevirtual |
Reimplemented from Analyzer::Expr.
Definition at line 1919 of file Analyzer.cpp.
References datetime_, and number_.
|
overridevirtual |
Implements Analyzer::Expr.
Definition at line 2608 of file Analyzer.cpp.
References datetime_, field_, get_datetime_expr(), get_field(), get_number_expr(), and number_.
|
overridevirtual |
Reimplemented from Analyzer::Expr.
Definition at line 2240 of file Analyzer.cpp.
References datetime_, field_, number_, and Analyzer::Expr::type_info.
|
overridevirtual |
Reimplemented from Analyzer::Expr.
Definition at line 2198 of file Analyzer.cpp.
References datetime_, field_, number_, and Analyzer::Expr::type_info.
|
overridevirtual |
Reimplemented from Analyzer::Expr.
Definition at line 2155 of file Analyzer.cpp.
References datetime_, field_, number_, and Analyzer::Expr::type_info.
|
inline |
Definition at line 1479 of file Analyzer.h.
References use_fixed_encoding_null_val_.
|
overridevirtual |
Implements Analyzer::Expr.
Definition at line 3091 of file Analyzer.cpp.
References datetime_, field_, number_, and to_string().
|
inline |
Definition at line 1480 of file Analyzer.h.
References use_fixed_encoding_null_val_.
Referenced by CodeGenerator::codegen().
|
private |
Definition at line 1506 of file Analyzer.h.
Referenced by check_group_by(), collect_column_var(), collect_rte_idx(), deep_copy(), find_expr(), get_datetime_expr(), group_predicates(), operator==(), rewrite_agg_to_var(), rewrite_with_child_targetlist(), rewrite_with_targetlist(), and toString().
|
private |
Definition at line 1504 of file Analyzer.h.
Referenced by deep_copy(), get_field(), operator==(), rewrite_agg_to_var(), rewrite_with_child_targetlist(), rewrite_with_targetlist(), and toString().
|
private |
Definition at line 1505 of file Analyzer.h.
Referenced by check_group_by(), collect_column_var(), collect_rte_idx(), deep_copy(), find_expr(), get_number_expr(), group_predicates(), operator==(), rewrite_agg_to_var(), rewrite_with_child_targetlist(), rewrite_with_targetlist(), and toString().
|
mutableprivate |
Definition at line 1510 of file Analyzer.h.
Referenced by set_fixed_encoding_null_val(), and use_fixed_encoding_null_val().