OmniSciDB  b28c0d5765
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Analyzer Namespace Reference

Namespaces

 anonymous_namespace{Analyzer.cpp}
 

Classes

class  Expr
 
class  ColumnVar
 
class  ExpressionTuple
 
class  Var
 
class  Constant
 
class  UOper
 
class  BinOper
 
class  RangeOper
 
class  Subquery
 
class  InValues
 
class  InIntegerSet
 
class  CharLengthExpr
 
class  KeyForStringExpr
 
class  SampleRatioExpr
 
class  CardinalityExpr
 
class  LikeExpr
 
class  RegexpExpr
 
class  WidthBucketExpr
 
class  LikelihoodExpr
 
class  AggExpr
 
class  CaseExpr
 
class  ExtractExpr
 
class  DateaddExpr
 
class  DatediffExpr
 
class  DatetruncExpr
 
class  StringOper
 Expression class for string functions The "arg" constructor parameter must be an expression that resolves to a string datatype (e.g. TEXT). More...
 
class  LowerStringOper
 
class  UpperStringOper
 
class  InitCapStringOper
 
class  ReverseStringOper
 
class  RepeatStringOper
 
class  ConcatStringOper
 
class  PadStringOper
 
class  TrimStringOper
 
class  SubstringStringOper
 
class  OverlayStringOper
 
class  ReplaceStringOper
 
class  SplitPartStringOper
 
class  RegexpReplaceStringOper
 
class  RegexpSubstrStringOper
 
class  JsonValueStringOper
 
class  Base64EncodeStringOper
 
class  Base64DecodeStringOper
 
class  TryStringCastOper
 
class  PositionStringOper
 
class  FunctionOper
 
class  FunctionOperWithCustomTypeHandling
 
class  OffsetInFragment
 
struct  OrderEntry
 
class  WindowFrame
 
class  WindowFunction
 
class  ArrayExpr
 
class  GeoUOper
 
class  GeoBinOper
 
class  TargetEntry
 
class  Query
 
class  GeoExpr
 
class  GeoColumnVar
 
class  GeoConstant
 
class  GeoOperator
 
class  GeoTransformOperator
 
class  RangeTableEntry
 
class  Estimator
 
class  NDVEstimator
 
class  LargeNDVEstimator
 

Typedefs

using LiteralArgMap = std::map< size_t, std::pair< SQLTypes, Datum >>
 
using DomainSet = std::list< const Expr * >
 
using ExpressionPtr = std::shared_ptr< Analyzer::Expr >
 
using ExpressionPtrList = std::list< ExpressionPtr >
 
using ExpressionPtrVector = std::vector< ExpressionPtr >
 

Functions

bool Datum_equal (const SQLTypeInfo &ti, Datum val1, Datum val2)
 

Typedef Documentation

using Analyzer::DomainSet = typedef std::list<const Expr*>

Definition at line 65 of file Analyzer.h.

using Analyzer::ExpressionPtr = typedef std::shared_ptr<Analyzer::Expr>

Definition at line 187 of file Analyzer.h.

using Analyzer::ExpressionPtrList = typedef std::list<ExpressionPtr>

Definition at line 188 of file Analyzer.h.

using Analyzer::ExpressionPtrVector = typedef std::vector<ExpressionPtr>

Definition at line 189 of file Analyzer.h.

using Analyzer::LiteralArgMap = typedef std::map<size_t, std::pair<SQLTypes, Datum>>

Definition at line 4043 of file Analyzer.cpp.

Function Documentation

bool Analyzer::Datum_equal ( const SQLTypeInfo ti,
Datum  val1,
Datum  val2 
)

Definition at line 2219 of file Analyzer.cpp.

References Datum::bigintval, Datum::boolval, Datum::doubleval, Datum::floatval, SQLTypeInfo::get_type(), SQLTypeInfo::get_type_name(), Datum::intval, kBIGINT, kBOOLEAN, kCHAR, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kINTERVAL_DAY_TIME, kINTERVAL_YEAR_MONTH, kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kNUMERIC, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, Datum::smallintval, Datum::stringval, Datum::tinyintval, and UNREACHABLE.

Referenced by Analyzer::Constant::operator==().

2219  {
2220  switch (ti.get_type()) {
2221  case kBOOLEAN:
2222  return val1.boolval == val2.boolval;
2223  case kCHAR:
2224  case kVARCHAR:
2225  case kTEXT:
2226  return *val1.stringval == *val2.stringval;
2227  case kNUMERIC:
2228  case kDECIMAL:
2229  case kBIGINT:
2230  return val1.bigintval == val2.bigintval;
2231  case kINT:
2232  return val1.intval == val2.intval;
2233  case kSMALLINT:
2234  return val1.smallintval == val2.smallintval;
2235  case kTINYINT:
2236  return val1.tinyintval == val2.tinyintval;
2237  case kFLOAT:
2238  return val1.floatval == val2.floatval;
2239  case kDOUBLE:
2240  return val1.doubleval == val2.doubleval;
2241  case kTIME:
2242  case kTIMESTAMP:
2243  case kDATE:
2244  case kINTERVAL_DAY_TIME:
2245  case kINTERVAL_YEAR_MONTH:
2246  return val1.bigintval == val2.bigintval;
2247  case kPOINT:
2248  case kMULTIPOINT:
2249  case kLINESTRING:
2250  case kMULTILINESTRING:
2251  case kPOLYGON:
2252  case kMULTIPOLYGON:
2253  return *val1.stringval == *val2.stringval;
2254  default:
2255  throw std::runtime_error("Unrecognized type for Constant Datum equality: " +
2256  ti.get_type_name());
2257  }
2258  UNREACHABLE();
2259  return false;
2260 }
int8_t tinyintval
Definition: Datum.h:46
Definition: sqltypes.h:64
int8_t boolval
Definition: Datum.h:45
#define UNREACHABLE()
Definition: Logger.h:266
HOST DEVICE SQLTypes get_type() const
Definition: sqltypes.h:380
int32_t intval
Definition: Datum.h:48
float floatval
Definition: Datum.h:50
int64_t bigintval
Definition: Datum.h:49
int16_t smallintval
Definition: Datum.h:47
std::string * stringval
Definition: Datum.h:54
Definition: sqltypes.h:67
Definition: sqltypes.h:68
std::string get_type_name() const
Definition: sqltypes.h:504
Definition: sqltypes.h:56
Definition: sqltypes.h:60
double doubleval
Definition: Datum.h:51

+ Here is the call graph for this function:

+ Here is the caller graph for this function: