OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Parser::UserLiteral Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::UserLiteral:
+ Collaboration diagram for Parser::UserLiteral:

Public Member Functions

 UserLiteral ()
 
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 ()
 

Static Public Member Functions

static std::shared_ptr
< Analyzer::Expr
get (const std::string &)
 

Additional Inherited Members

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

Detailed Description

Definition at line 256 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::UserLiteral::UserLiteral ( )
inline

Definition at line 258 of file ParserNode.h.

258 {}

Member Function Documentation

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

Implements Parser::Literal.

Definition at line 200 of file ParserNode.cpp.

References test_fsi::d, and kTEXT.

203  {
204  Datum d;
205  return makeExpr<Analyzer::Constant>(kTEXT, false, d);
206 }
tuple d
Definition: test_fsi.py:9
Definition: sqltypes.h:51
std::shared_ptr< Analyzer::Expr > Parser::UserLiteral::get ( const std::string &  user)
static

Definition at line 208 of file ParserNode.cpp.

References test_fsi::d, kTEXT, and Datum::stringval.

Referenced by RelAlgTranslator::translateCurrentUser().

208  {
209  Datum d;
210  d.stringval = new std::string(user);
211  return makeExpr<Analyzer::Constant>(kTEXT, false, d);
212 }
tuple d
Definition: test_fsi.py:9
std::string * stringval
Definition: sqltypes.h:214
Definition: sqltypes.h:51

+ Here is the caller graph for this function:

std::string Parser::UserLiteral::to_string ( ) const
inlineoverridevirtual

Implements Parser::Literal.

Definition at line 264 of file ParserNode.h.

264 { return "USER"; }

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