OmniSciDB  95562058bd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 326 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 328 of file ParserNode.h.

328 : query(q) {}
std::unique_ptr< QuerySpec > query
Definition: ParserNode.h:337

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 351 of file ParserNode.cpp.

354  {
355  throw std::runtime_error("Subqueries are not supported yet.");
356  return nullptr;
357 }
const QuerySpec* Parser::SubqueryExpr::get_query ( ) const
inline

Definition at line 329 of file ParserNode.h.

References query.

329 { return query.get(); }
std::unique_ptr< QuerySpec > query
Definition: ParserNode.h:337
std::string Parser::SubqueryExpr::to_string ( ) const
overridevirtual

Implements Parser::Expr.

Definition at line 1319 of file ParserNode.cpp.

1319  {
1320  std::string str;
1321  str = "(";
1322  str += query->to_string();
1323  str += ")";
1324  return str;
1325 }
std::unique_ptr< QuerySpec > query
Definition: ParserNode.h:337

Member Data Documentation


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