OmniSciDB  06b3bd477c
 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

Detailed Description

Definition at line 252 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::UserLiteral::UserLiteral ( )

Definition at line 254 of file ParserNode.h.

254 {}

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

Implements Parser::Literal.

Definition at line 184 of file ParserNode.cpp.

References kTEXT.

187  {
188  Datum d;
189  return makeExpr<Analyzer::Constant>(kTEXT, false, d);
190 }
Definition: sqltypes.h:53
std::shared_ptr< Analyzer::Expr > Parser::UserLiteral::get ( const std::string &  user)

Definition at line 192 of file ParserNode.cpp.

References kTEXT, and Datum::stringval.

Referenced by RelAlgTranslator::translateCurrentUser().

192  {
193  Datum d;
194  d.stringval = new std::string(user);
195  return makeExpr<Analyzer::Constant>(kTEXT, false, d);
196 }
std::string * stringval
Definition: sqltypes.h:142
Definition: sqltypes.h:53

+ Here is the caller graph for this function:

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

Implements Parser::Literal.

Definition at line 260 of file ParserNode.h.

260 { return "USER"; }

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