OmniSciDB
a5dc49c757
|
#include <Analyzer.h>
Public Member Functions | |
Query () | |
virtual | ~Query () |
bool | get_is_distinct () const |
int | get_num_aggs () const |
const std::vector < std::shared_ptr< TargetEntry > > & | get_targetlist () const |
std::vector< std::shared_ptr < TargetEntry > > & | get_targetlist_nonconst () |
const std::vector< std::vector < std::shared_ptr< TargetEntry > > > & | get_values_lists () const |
std::vector< std::vector < std::shared_ptr< TargetEntry > > > & | get_values_lists () |
const std::vector < RangeTableEntry * > & | get_rangetable () const |
const Expr * | get_where_predicate () const |
const std::list < std::shared_ptr < Analyzer::Expr > > & | get_group_by () const |
const Expr * | get_having_predicate () const |
const std::list< OrderEntry > * | get_order_by () const |
const Query * | get_next_query () const |
SQLStmtType | get_stmt_type () const |
bool | get_is_unionall () const |
int | get_result_table_id () const |
const std::list< int > & | get_result_col_list () const |
void | set_result_col_list (const std::list< int > &col_list) |
void | set_result_table_id (int id) |
void | set_is_distinct (bool d) |
void | set_where_predicate (std::shared_ptr< Analyzer::Expr > p) |
void | set_group_by (std::list< std::shared_ptr< Analyzer::Expr >> &g) |
void | set_having_predicate (std::shared_ptr< Analyzer::Expr > p) |
void | set_order_by (std::list< OrderEntry > *o) |
void | set_next_query (Query *q) |
void | set_is_unionall (bool u) |
void | set_stmt_type (SQLStmtType t) |
void | set_num_aggs (int a) |
int | get_rte_idx (const std::string &range_var_name) const |
RangeTableEntry * | get_rte (int rte_idx) const |
void | add_rte (RangeTableEntry *rte) |
void | add_tle (std::shared_ptr< TargetEntry > tle) |
int64_t | get_limit () const |
void | set_limit (int64_t l) |
int64_t | get_offset () const |
void | set_offset (int64_t o) |
Private Attributes | |
bool | is_distinct |
std::vector< std::shared_ptr < TargetEntry > > | targetlist |
std::vector< RangeTableEntry * > | rangetable |
std::shared_ptr< Analyzer::Expr > | where_predicate |
std::list< std::shared_ptr < Analyzer::Expr > > | group_by |
std::shared_ptr< Analyzer::Expr > | having_predicate |
std::list< OrderEntry > * | order_by |
Query * | next_query |
bool | is_unionall |
SQLStmtType | stmt_type |
int | num_aggs |
int | result_table_id |
std::list< int > | result_col_list |
std::vector< std::vector < std::shared_ptr< TargetEntry > > > | values_lists |
int64_t | limit |
int64_t | offset |
Definition at line 3134 of file Analyzer.h.
|
inline |
Definition at line 3136 of file Analyzer.h.
|
virtual |
void Analyzer::Query::add_rte | ( | RangeTableEntry * | rte | ) |
Definition at line 1506 of file Analyzer.cpp.
References rangetable.
Referenced by Parser::QuerySpec::analyze_from_clause().
|
inline |
Definition at line 3189 of file Analyzer.h.
References targetlist.
|
inline |
Definition at line 3165 of file Analyzer.h.
References group_by.
Referenced by Parser::QuerySpec::analyze_having_clause().
|
inline |
Definition at line 3168 of file Analyzer.h.
References having_predicate.
|
inline |
Definition at line 3149 of file Analyzer.h.
References is_distinct.
Referenced by Parser::SelectStmt::analyze().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 3150 of file Analyzer.h.
References num_aggs.
Referenced by Parser::FunctionRef::analyze(), and Parser::QuerySpec::analyze_group_by().
|
inline |
|
inline |
|
inline |
Definition at line 3163 of file Analyzer.h.
References rangetable.
Referenced by Parser::ColumnRef::analyze(), and Parser::QuerySpec::analyze_select_clause().
|
inline |
Definition at line 3174 of file Analyzer.h.
References result_col_list.
Referenced by Parser::InsertValuesStmt::analyze(), and RelAlgExecutor::executeSimpleInsert().
|
inline |
Definition at line 3173 of file Analyzer.h.
References result_table_id.
Referenced by Parser::InsertValuesStmt::analyze(), and RelAlgExecutor::executeSimpleInsert().
|
inline |
Definition at line 3187 of file Analyzer.h.
References rangetable.
Referenced by Parser::ColumnRef::analyze(), and Parser::QuerySpec::analyze_select_clause().
int Analyzer::Query::get_rte_idx | ( | const std::string & | range_var_name | ) | const |
Definition at line 1495 of file Analyzer.cpp.
References setup::name, and rangetable.
Referenced by Parser::ColumnRef::analyze(), and Parser::QuerySpec::analyze_select_clause().
|
inline |
|
inline |
Definition at line 3151 of file Analyzer.h.
References targetlist.
Referenced by Parser::ColumnRef::analyze(), Parser::SelectStmt::analyze(), and Parser::QuerySpec::analyze_group_by().
|
inline |
Definition at line 3154 of file Analyzer.h.
References targetlist.
Referenced by Parser::QuerySpec::analyze_select_clause().
|
inline |
Definition at line 3157 of file Analyzer.h.
References values_lists.
Referenced by Parser::InsertValuesStmt::analyze(), and RelAlgExecutor::executeSimpleInsert().
|
inline |
Definition at line 3160 of file Analyzer.h.
References values_lists.
|
inline |
Definition at line 3164 of file Analyzer.h.
References where_predicate.
|
inline |
Definition at line 3179 of file Analyzer.h.
References group_by.
Referenced by Parser::QuerySpec::analyze_group_by().
|
inline |
Definition at line 3180 of file Analyzer.h.
References having_predicate.
Referenced by Parser::QuerySpec::analyze_having_clause().
|
inline |
Definition at line 3177 of file Analyzer.h.
References is_distinct.
Referenced by Parser::QuerySpec::analyze().
|
inline |
Definition at line 3183 of file Analyzer.h.
References is_unionall.
Referenced by Parser::UnionQuery::analyze().
|
inline |
Definition at line 3191 of file Analyzer.h.
References limit.
Referenced by Parser::SelectStmt::analyze().
|
inline |
Definition at line 3182 of file Analyzer.h.
References next_query.
Referenced by Parser::UnionQuery::analyze().
|
inline |
Definition at line 3185 of file Analyzer.h.
References anonymous_namespace{Utm.h}::a, and num_aggs.
Referenced by Parser::FunctionRef::analyze().
|
inline |
Definition at line 3193 of file Analyzer.h.
References offset.
Referenced by Parser::SelectStmt::analyze().
|
inline |
Definition at line 3181 of file Analyzer.h.
References order_by.
Referenced by Parser::SelectStmt::analyze().
|
inline |
Definition at line 3175 of file Analyzer.h.
References result_col_list.
Referenced by Parser::InsertStmt::analyze().
|
inline |
Definition at line 3176 of file Analyzer.h.
References result_table_id.
Referenced by Parser::InsertStmt::analyze().
|
inline |
Definition at line 3184 of file Analyzer.h.
References stmt_type.
Referenced by Parser::SelectStmt::analyze(), and Parser::InsertStmt::analyze().
|
inline |
Definition at line 3178 of file Analyzer.h.
References where_predicate.
Referenced by Parser::QuerySpec::analyze_where_clause().
|
private |
Definition at line 3202 of file Analyzer.h.
Referenced by get_group_by(), and set_group_by().
|
private |
Definition at line 3203 of file Analyzer.h.
Referenced by get_having_predicate(), and set_having_predicate().
|
private |
Definition at line 3196 of file Analyzer.h.
Referenced by get_is_distinct(), heavydb.serialized_result_set.ttypes.TTargetInfo::read(), set_is_distinct(), and heavydb.serialized_result_set.ttypes.TTargetInfo::write().
|
private |
Definition at line 3206 of file Analyzer.h.
Referenced by get_is_unionall(), and set_is_unionall().
|
private |
Definition at line 3212 of file Analyzer.h.
Referenced by get_limit(), and set_limit().
|
private |
Definition at line 3205 of file Analyzer.h.
Referenced by get_next_query(), set_next_query(), and ~Query().
|
private |
Definition at line 3208 of file Analyzer.h.
Referenced by get_num_aggs(), and set_num_aggs().
|
private |
Definition at line 3213 of file Analyzer.h.
Referenced by get_offset(), and set_offset().
|
private |
Definition at line 3204 of file Analyzer.h.
Referenced by get_order_by(), set_order_by(), and ~Query().
|
private |
Definition at line 3198 of file Analyzer.h.
Referenced by add_rte(), get_rangetable(), get_rte(), get_rte_idx(), and ~Query().
|
private |
Definition at line 3210 of file Analyzer.h.
Referenced by get_result_col_list(), and set_result_col_list().
|
private |
Definition at line 3209 of file Analyzer.h.
Referenced by get_result_table_id(), and set_result_table_id().
|
private |
Definition at line 3207 of file Analyzer.h.
Referenced by get_stmt_type(), and set_stmt_type().
|
private |
Definition at line 3197 of file Analyzer.h.
Referenced by add_tle(), get_targetlist(), and get_targetlist_nonconst().
|
private |
Definition at line 3211 of file Analyzer.h.
Referenced by get_values_lists().
|
private |
Definition at line 3201 of file Analyzer.h.
Referenced by get_where_predicate(), and set_where_predicate().