OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{GeoIR.cpp} Namespace Reference

Functions

std::string suffix (SQLTypes type)
 

Function Documentation

std::string anonymous_namespace{GeoIR.cpp}::suffix ( SQLTypes  type)

Definition at line 156 of file GeoIR.cpp.

References kLINESTRING, kMULTIPOLYGON, kPOINT, and kPOLYGON.

Referenced by CodeGenerator::codegenGeoFunctionOperator(), anonymous_namespace{DateTimeParser.cpp}::eatMonth(), enum_name(), RelAlgTranslator::translateBinaryGeoFunction(), RelAlgTranslator::translateGeoFunctionArg(), RelAlgTranslator::translateTernaryGeoFunction(), RelAlgTranslator::translateUnaryGeoFunction(), and type_name().

156  {
157  if (type == kPOINT) {
158  return std::string("_Point");
159  }
160  if (type == kLINESTRING) {
161  return std::string("_LineString");
162  }
163  if (type == kPOLYGON) {
164  return std::string("_Polygon");
165  }
166  if (type == kMULTIPOLYGON) {
167  return std::string("_MultiPolygon");
168  }
169  throw std::runtime_error("Unsupported argument type");
170 }

+ Here is the caller graph for this function: