OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TransientDictIdVisitor Class Reference

#include <TransientStringLiteralsVisitor.h>

+ Inheritance diagram for TransientDictIdVisitor:
+ Collaboration diagram for TransientDictIdVisitor:

Public Member Functions

shared::StringDictKey visitUOper (const Analyzer::UOper *uoper) const override
 
shared::StringDictKey visitCaseExpr (const Analyzer::CaseExpr *case_expr) const override
 
shared::StringDictKey visitStringOper (const Analyzer::StringOper *string_oper) const override
 
- Public Member Functions inherited from ScalarExprVisitor< shared::StringDictKey >
shared::StringDictKey visit (const Analyzer::Expr *expr) const
 

Protected Member Functions

shared::StringDictKey defaultResult () const override
 
- Protected Member Functions inherited from ScalarExprVisitor< shared::StringDictKey >
virtual shared::StringDictKey visitVar (const Analyzer::Var *) const
 
virtual shared::StringDictKey visitColumnVar (const Analyzer::ColumnVar *) const
 
virtual shared::StringDictKey visitColumnVarTuple (const Analyzer::ExpressionTuple *) const
 
virtual shared::StringDictKey visitConstant (const Analyzer::Constant *) const
 
virtual shared::StringDictKey visitBinOper (const Analyzer::BinOper *bin_oper) const
 
virtual shared::StringDictKey visitGeoExpr (const Analyzer::GeoExpr *geo_expr) const
 
virtual shared::StringDictKey visitInValues (const Analyzer::InValues *in_values) const
 
virtual shared::StringDictKey visitInIntegerSet (const Analyzer::InIntegerSet *in_integer_set) const
 
virtual shared::StringDictKey visitCharLength (const Analyzer::CharLengthExpr *char_length) const
 
virtual shared::StringDictKey visitKeyForString (const Analyzer::KeyForStringExpr *key_for_string) const
 
virtual shared::StringDictKey visitSampleRatio (const Analyzer::SampleRatioExpr *sample_ratio) const
 
virtual shared::StringDictKey visitCardinality (const Analyzer::CardinalityExpr *cardinality) const
 
virtual shared::StringDictKey visitLikeExpr (const Analyzer::LikeExpr *like) const
 
virtual shared::StringDictKey visitRegexpExpr (const Analyzer::RegexpExpr *regexp) const
 
virtual shared::StringDictKey visitWidthBucket (const Analyzer::WidthBucketExpr *width_bucket_expr) const
 
virtual shared::StringDictKey visitDatetruncExpr (const Analyzer::DatetruncExpr *datetrunc) const
 
virtual shared::StringDictKey visitExtractExpr (const Analyzer::ExtractExpr *extract) const
 
virtual shared::StringDictKey visitFunctionOperWithCustomTypeHandling (const Analyzer::FunctionOperWithCustomTypeHandling *func_oper) const
 
virtual shared::StringDictKey visitArrayOper (Analyzer::ArrayExpr const *array_expr) const
 
virtual shared::StringDictKey visitGeoUOper (const Analyzer::GeoUOper *geo_expr) const
 
virtual shared::StringDictKey visitGeoBinOper (const Analyzer::GeoBinOper *geo_expr) const
 
virtual shared::StringDictKey visitFunctionOper (const Analyzer::FunctionOper *func_oper) const
 
virtual shared::StringDictKey visitWindowFunction (const Analyzer::WindowFunction *window_func) const
 
virtual shared::StringDictKey visitDatediffExpr (const Analyzer::DatediffExpr *datediff) const
 
virtual shared::StringDictKey visitDateaddExpr (const Analyzer::DateaddExpr *dateadd) const
 
virtual shared::StringDictKey visitLikelihood (const Analyzer::LikelihoodExpr *likelihood) const
 
virtual shared::StringDictKey visitOffsetInFragment (const Analyzer::OffsetInFragment *) const
 
virtual shared::StringDictKey visitAggExpr (const Analyzer::AggExpr *agg) const
 
virtual shared::StringDictKey visitRangeJoinOper (const Analyzer::RangeOper *range_oper) const
 
virtual shared::StringDictKey aggregateResult (const shared::StringDictKey &aggregate, const shared::StringDictKey &next_result) const
 
virtual void visitBegin () const
 

Detailed Description

Definition at line 167 of file TransientStringLiteralsVisitor.h.

Member Function Documentation

shared::StringDictKey TransientDictIdVisitor::defaultResult ( ) const
inlineoverrideprotectedvirtual

Reimplemented from ScalarExprVisitor< shared::StringDictKey >.

Definition at line 197 of file TransientStringLiteralsVisitor.h.

Referenced by visitCaseExpr(), visitStringOper(), and visitUOper().

197 { return {}; }

+ Here is the caller graph for this function:

shared::StringDictKey TransientDictIdVisitor::visitCaseExpr ( const Analyzer::CaseExpr case_expr) const
inlineoverridevirtual

Reimplemented from ScalarExprVisitor< shared::StringDictKey >.

Definition at line 178 of file TransientStringLiteralsVisitor.h.

References defaultResult(), Analyzer::Expr::get_type_info(), SQLTypeInfo::getStringDictKey(), and kENCODING_DICT.

179  {
180  const auto& expr_ti = case_expr->get_type_info();
181  if (expr_ti.is_string() && expr_ti.get_compression() == kENCODING_DICT) {
182  return expr_ti.getStringDictKey();
183  }
184  return defaultResult();
185  }
shared::StringDictKey defaultResult() const override
const SQLTypeInfo & get_type_info() const
Definition: Analyzer.h:79
const shared::StringDictKey & getStringDictKey() const
Definition: sqltypes.h:1021

+ Here is the call graph for this function:

shared::StringDictKey TransientDictIdVisitor::visitStringOper ( const Analyzer::StringOper string_oper) const
inlineoverridevirtual

Reimplemented from ScalarExprVisitor< shared::StringDictKey >.

Definition at line 187 of file TransientStringLiteralsVisitor.h.

References defaultResult(), Analyzer::Expr::get_type_info(), SQLTypeInfo::getStringDictKey(), and kENCODING_DICT.

188  {
189  const auto& expr_ti = string_oper->get_type_info();
190  if (expr_ti.is_string() && expr_ti.get_compression() == kENCODING_DICT) {
191  return expr_ti.getStringDictKey();
192  }
193  return defaultResult();
194  }
shared::StringDictKey defaultResult() const override
const SQLTypeInfo & get_type_info() const
Definition: Analyzer.h:79
const shared::StringDictKey & getStringDictKey() const
Definition: sqltypes.h:1021

+ Here is the call graph for this function:

shared::StringDictKey TransientDictIdVisitor::visitUOper ( const Analyzer::UOper uoper) const
inlineoverridevirtual

Reimplemented from ScalarExprVisitor< shared::StringDictKey >.

Definition at line 169 of file TransientStringLiteralsVisitor.h.

References defaultResult(), Analyzer::UOper::get_optype(), Analyzer::Expr::get_type_info(), SQLTypeInfo::getStringDictKey(), kCAST, and kENCODING_DICT.

169  {
170  const auto& expr_ti = uoper->get_type_info();
171  if (uoper->get_optype() == kCAST && expr_ti.is_string() &&
172  expr_ti.get_compression() == kENCODING_DICT) {
173  return expr_ti.getStringDictKey();
174  }
175  return defaultResult();
176  }
Definition: sqldefs.h:48
shared::StringDictKey defaultResult() const override
const SQLTypeInfo & get_type_info() const
Definition: Analyzer.h:79
SQLOps get_optype() const
Definition: Analyzer.h:383
const shared::StringDictKey & getStringDictKey() const
Definition: sqltypes.h:1021

+ Here is the call graph for this function:


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