OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Parser::SubqueryExpr Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::SubqueryExpr:
+ Collaboration diagram for Parser::SubqueryExpr:

Public Member Functions

 SubqueryExpr (QuerySpec *q)
 
const QuerySpecget_query () const
 
std::shared_ptr< Analyzer::Expranalyze (const Catalog_Namespace::Catalog &catalog, Analyzer::Query &query, TlistRefType allow_tlist_ref=TLIST_NONE) const override
 
std::string to_string () const override
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

std::unique_ptr< QuerySpecquery_
 

Additional Inherited Members

- Public Types inherited from Parser::Expr
enum  TlistRefType { TLIST_NONE, TLIST_REF, TLIST_COPY }
 

Detailed Description

Definition at line 331 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::SubqueryExpr::SubqueryExpr ( QuerySpec q)
inlineexplicit

Definition at line 333 of file ParserNode.h.

333 : query_(q) {}
std::unique_ptr< QuerySpec > query_
Definition: ParserNode.h:342

Member Function Documentation

std::shared_ptr< Analyzer::Expr > Parser::SubqueryExpr::analyze ( const Catalog_Namespace::Catalog catalog,
Analyzer::Query query,
TlistRefType  allow_tlist_ref = TLIST_NONE 
) const
overridevirtual

Implements Parser::Expr.

Definition at line 496 of file ParserNode.cpp.

499  {
500  throw std::runtime_error("Subqueries are not supported yet.");
501  return nullptr;
502 }
const QuerySpec* Parser::SubqueryExpr::get_query ( ) const
inline

Definition at line 334 of file ParserNode.h.

References query_.

334 { return query_.get(); }
std::unique_ptr< QuerySpec > query_
Definition: ParserNode.h:342
std::string Parser::SubqueryExpr::to_string ( ) const
overridevirtual

Implements Parser::Expr.

Definition at line 2135 of file ParserNode.cpp.

2135  {
2136  std::string str;
2137  str = "(";
2138  str += query_->to_string();
2139  str += ")";
2140  return str;
2141 }
std::unique_ptr< QuerySpec > query_
Definition: ParserNode.h:342

Member Data Documentation

std::unique_ptr<QuerySpec> Parser::SubqueryExpr::query_
private

Definition at line 342 of file ParserNode.h.

Referenced by get_query().


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