OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Analyzer::Subquery Class Reference

#include <Analyzer.h>

+ Inheritance diagram for Analyzer::Subquery:
+ Collaboration diagram for Analyzer::Subquery:

Public Member Functions

 Subquery (const SQLTypeInfo &ti, Query *q)
 
 ~Subquery () override
 
const Queryget_parsetree () const
 
std::shared_ptr< Analyzer::Expradd_cast (const SQLTypeInfo &new_type_info) override
 
std::shared_ptr< Analyzer::Exprdeep_copy () 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::Exprrewrite_with_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const override
 
std::shared_ptr< Analyzer::Exprrewrite_with_child_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const override
 
std::shared_ptr< Analyzer::Exprrewrite_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::Exprget_shared_ptr ()
 
const SQLTypeInfoget_type_info () const
 
void set_type_info (const SQLTypeInfo &ti)
 
bool get_contains_agg () const
 
void set_contains_agg (bool a)
 
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 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::Exprdecompress ()
 
virtual void get_domain (DomainSet &domain_set) const
 

Private Attributes

Queryparsetree
 

Additional Inherited Members

- Protected Attributes inherited from Analyzer::Expr
SQLTypeInfo type_info
 
bool contains_agg
 

Detailed Description

Definition at line 583 of file Analyzer.h.

Constructor & Destructor Documentation

Analyzer::Subquery::Subquery ( const SQLTypeInfo ti,
Query q 
)
inline

Definition at line 585 of file Analyzer.h.

586  : Expr(ti), parsetree(q) /*, plan(nullptr)*/ {}
Query * parsetree
Definition: Analyzer.h:628
Expr(SQLTypes t, bool notnull)
Definition: Analyzer.h:74
Analyzer::Subquery::~Subquery ( )
override

Definition at line 46 of file Analyzer.cpp.

References parsetree.

46  {
47  delete parsetree;
48 }
Query * parsetree
Definition: Analyzer.h:628

Member Function Documentation

std::shared_ptr< Analyzer::Expr > Analyzer::Subquery::add_cast ( const SQLTypeInfo new_type_info)
overridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 1446 of file Analyzer.cpp.

References CHECK.

1446  {
1447  // not supported yet.
1448  CHECK(false);
1449  return nullptr;
1450 }
#define CHECK(condition)
Definition: Logger.h:289
void Analyzer::Subquery::collect_column_var ( std::set< const ColumnVar *, bool(*)(const ColumnVar *, const ColumnVar *)> &  colvar_set,
bool  include_agg 
) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 599 of file Analyzer.h.

References CHECK.

602  {
603  CHECK(false);
604  }
#define CHECK(condition)
Definition: Logger.h:289
void Analyzer::Subquery::collect_rte_idx ( std::set< int > &  rte_idx_set) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 598 of file Analyzer.h.

References CHECK.

598 { CHECK(false); }
#define CHECK(condition)
Definition: Logger.h:289
std::shared_ptr< Analyzer::Expr > Analyzer::Subquery::deep_copy ( ) const
overridevirtual

Implements Analyzer::Expr.

Definition at line 122 of file Analyzer.cpp.

References CHECK.

122  {
123  // not supported yet.
124  CHECK(false);
125  return nullptr;
126 }
#define CHECK(condition)
Definition: Logger.h:289
void Analyzer::Subquery::find_expr ( std::function< bool(const Expr *)>  f,
std::list< const Expr * > &  expr_list 
) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 622 of file Analyzer.h.

References CHECK.

623  {
624  CHECK(false);
625  }
#define CHECK(condition)
Definition: Logger.h:289
const Query* Analyzer::Subquery::get_parsetree ( ) const
inline

Definition at line 588 of file Analyzer.h.

References parsetree.

588 { return parsetree; }
Query * parsetree
Definition: Analyzer.h:628
void Analyzer::Subquery::group_predicates ( std::list< const Expr * > &  scan_predicates,
std::list< const Expr * > &  join_predicates,
std::list< const Expr * > &  const_predicates 
) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 593 of file Analyzer.h.

References CHECK.

595  {
596  CHECK(false);
597  }
#define CHECK(condition)
Definition: Logger.h:289
bool Analyzer::Subquery::operator== ( const Expr rhs) const
inlineoverridevirtual

Implements Analyzer::Expr.

Definition at line 617 of file Analyzer.h.

References CHECK.

617  {
618  CHECK(false);
619  return false;
620  }
#define CHECK(condition)
Definition: Logger.h:289
std::shared_ptr<Analyzer::Expr> Analyzer::Subquery::rewrite_agg_to_var ( const std::vector< std::shared_ptr< TargetEntry >> &  tlist) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 613 of file Analyzer.h.

614  {
615  abort();
616  }
std::shared_ptr<Analyzer::Expr> Analyzer::Subquery::rewrite_with_child_targetlist ( const std::vector< std::shared_ptr< TargetEntry >> &  tlist) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 609 of file Analyzer.h.

610  {
611  abort();
612  }
std::shared_ptr<Analyzer::Expr> Analyzer::Subquery::rewrite_with_targetlist ( const std::vector< std::shared_ptr< TargetEntry >> &  tlist) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 605 of file Analyzer.h.

606  {
607  abort();
608  }
std::string Analyzer::Subquery::toString ( ) const
overridevirtual

Implements Analyzer::Expr.

Definition at line 2739 of file Analyzer.cpp.

2739  {
2740  return "(Subquery ) ";
2741 }

Member Data Documentation

Query* Analyzer::Subquery::parsetree
private

Definition at line 628 of file Analyzer.h.

Referenced by get_parsetree(), and ~Subquery().


The documentation for this class was generated from the following files: