OmniSciDB  cde582ebc3
 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

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

Protected Member Functions

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

Detailed Description

Definition at line 159 of file TransientStringLiteralsVisitor.h.

Member Function Documentation

int TransientDictIdVisitor::defaultResult ( ) const
inlineoverrideprotectedvirtual

Reimplemented from ScalarExprVisitor< int >.

Definition at line 187 of file TransientStringLiteralsVisitor.h.

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

187 { return -1; }

+ Here is the caller graph for this function:

int TransientDictIdVisitor::visitCaseExpr ( const Analyzer::CaseExpr case_expr) const
inlineoverridevirtual

Reimplemented from ScalarExprVisitor< int >.

Definition at line 170 of file TransientStringLiteralsVisitor.h.

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

170  {
171  const auto& expr_ti = case_expr->get_type_info();
172  if (expr_ti.is_string() && expr_ti.get_compression() == kENCODING_DICT) {
173  return expr_ti.get_comp_param();
174  }
175  return defaultResult();
176  }
const SQLTypeInfo & get_type_info() const
Definition: Analyzer.h:81
HOST DEVICE int get_comp_param() const
Definition: sqltypes.h:338

+ Here is the call graph for this function:

int TransientDictIdVisitor::visitStringOper ( const Analyzer::StringOper string_oper) const
inlineoverridevirtual

Reimplemented from ScalarExprVisitor< int >.

Definition at line 178 of file TransientStringLiteralsVisitor.h.

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

178  {
179  const auto& expr_ti = string_oper->get_type_info();
180  if (expr_ti.is_string() && expr_ti.get_compression() == kENCODING_DICT) {
181  return expr_ti.get_comp_param();
182  }
183  return defaultResult();
184  }
const SQLTypeInfo & get_type_info() const
Definition: Analyzer.h:81
HOST DEVICE int get_comp_param() const
Definition: sqltypes.h:338

+ Here is the call graph for this function:

int TransientDictIdVisitor::visitUOper ( const Analyzer::UOper uoper) const
inlineoverridevirtual

Reimplemented from ScalarExprVisitor< int >.

Definition at line 161 of file TransientStringLiteralsVisitor.h.

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

161  {
162  const auto& expr_ti = uoper->get_type_info();
163  if (uoper->get_optype() == kCAST && expr_ti.is_string() &&
164  expr_ti.get_compression() == kENCODING_DICT) {
165  return expr_ti.get_comp_param();
166  }
167  return defaultResult();
168  }
Definition: sqldefs.h:48
const SQLTypeInfo & get_type_info() const
Definition: Analyzer.h:81
HOST DEVICE int get_comp_param() const
Definition: sqltypes.h:338
SQLOps get_optype() const
Definition: Analyzer.h:377

+ Here is the call graph for this function:


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