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

Classes

class  AreaPerimeter
 
class  Centroid
 
class  Codegen
 
class  Distance
 
class  NPoints
 
class  NRings
 
class  PointAccessors
 
class  PointConstructor
 
class  PointN
 
class  StartEndPoint
 
class  Transform
 

Functions

std::string suffix (SQLTypes type)
 

Function Documentation

std::string spatial_type::suffix ( SQLTypes  type)

Definition at line 68 of file Codegen.cpp.

References kLINESTRING, kMULTIPOLYGON, kPOINT, kPOLYGON, toString(), and UNREACHABLE.

Referenced by spatial_type::AreaPerimeter::codegen(), spatial_type::Centroid::codegen(), spatial_type::Distance::codegen(), anonymous_namespace{DateTimeParser.cpp}::eatMonth(), enum_name(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions(), RelAlgTranslator::translateBinaryGeoFunction(), RelAlgTranslator::translateTernaryGeoFunction(), RelAlgTranslator::translateUnaryGeoFunction(), and type_name().

68  {
69  if (type == kPOINT) {
70  return std::string("_Point");
71  }
72  if (type == kLINESTRING) {
73  return std::string("_LineString");
74  }
75  if (type == kPOLYGON) {
76  return std::string("_Polygon");
77  }
78  if (type == kMULTIPOLYGON) {
79  return std::string("_MultiPolygon");
80  }
81  UNREACHABLE() << "Unsupported argument to suffix: " << toString(type);
82  return "";
83 }
std::string toString(const ExtArgumentType &sig_type)
#define UNREACHABLE()
Definition: Logger.h:253

+ Here is the call graph for this function:

+ Here is the caller graph for this function: