OmniSciDB  04ee39c94c
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 583 of file ParserNode.h.

Constructor & Destructor Documentation

◆ ExistsExpr()

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

Definition at line 585 of file ParserNode.h.

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

Member Function Documentation

◆ analyze()

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

687  {
688  throw std::runtime_error("Subqueries are not supported yet.");
689  return nullptr;
690 }

◆ get_query()

const QuerySpec* Parser::ExistsExpr::get_query ( ) const
inline

Definition at line 586 of file ParserNode.h.

References anonymous_namespace{UpdateMetadataTest.cpp}::query, and to_string().

586 { return query.get(); }
std::unique_ptr< QuerySpec > query
Definition: ParserNode.h:594
+ Here is the call graph for this function:

◆ to_string()

std::string Parser::ExistsExpr::to_string ( ) const
overridevirtual

Implements Parser::Expr.

Definition at line 1358 of file ParserNode.cpp.

References anonymous_namespace{UpdateMetadataTest.cpp}::query.

1358  {
1359  return "EXISTS (" + query->to_string() + ")";
1360 }
std::unique_ptr< QuerySpec > query
Definition: ParserNode.h:594

Member Data Documentation

◆ query

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

Definition at line 594 of file ParserNode.h.


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