Class Analyzer::Query

class Query

Public Functions

Query()
~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<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 Members

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
int64_t limit
int64_t offset