OmniSciDB  a987f07e93
 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  NumGeometries
 
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 70 of file Codegen.cpp.

References kLINESTRING, kMULTILINESTRING, kMULTIPOINT, 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(), import_export::RasterImporter::getBandName(), RelAlgTranslator::translateBinaryGeoFunction(), RelAlgTranslator::translateTernaryGeoFunction(), RelAlgTranslator::translateUnaryGeoFunction(), and type_name().

70  {
71  if (type == kPOINT) {
72  return std::string("_Point");
73  }
74  if (type == kMULTIPOINT) {
75  return std::string("_MultiPoint");
76  }
77  if (type == kLINESTRING) {
78  return std::string("_LineString");
79  }
80  if (type == kMULTILINESTRING) {
81  return std::string("_MultiLineString");
82  }
83  if (type == kPOLYGON) {
84  return std::string("_Polygon");
85  }
86  if (type == kMULTIPOLYGON) {
87  return std::string("_MultiPolygon");
88  }
89  UNREACHABLE() << "Unsupported argument to suffix: " << toString(type);
90  return "";
91 }
#define UNREACHABLE()
Definition: Logger.h:333
std::string toString(const ExecutorDeviceType &device_type)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: