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

#include <ParserNode.h>

+ Inheritance diagram for Parser::ExistsExpr:
+ Collaboration diagram for Parser::ExistsExpr:

Public Member Functions

 ExistsExpr (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 609 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::ExistsExpr::ExistsExpr ( QuerySpec q)
inlineexplicit

Definition at line 611 of file ParserNode.h.

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

Member Function Documentation

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

Implements Parser::Expr.

Definition at line 870 of file ParserNode.cpp.

873  {
874  throw std::runtime_error("Subqueries are not supported yet.");
875  return nullptr;
876 }
const QuerySpec* Parser::ExistsExpr::get_query ( ) const
inline

Definition at line 612 of file ParserNode.h.

References query_.

612 { return query_.get(); }
std::unique_ptr< QuerySpec > query_
Definition: ParserNode.h:620
std::string Parser::ExistsExpr::to_string ( ) const
overridevirtual

Implements Parser::Expr.

Definition at line 2145 of file ParserNode.cpp.

2145  {
2146  return "EXISTS (" + query_->to_string() + ")";
2147 }
std::unique_ptr< QuerySpec > query_
Definition: ParserNode.h:620

Member Data Documentation

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

Definition at line 620 of file ParserNode.h.

Referenced by get_query().


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