OmniSciDB  4201147b46
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec Class Reference
+ Inheritance diagram for com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec:
+ Collaboration diagram for com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec:

Public Member Functions

 HeavyDBGeoTypeNameSpec (HeavyDBGeo geoType, Integer coordinateSystem, boolean isGeography, Pair< HeavyDBEncoding, Integer > encodingInfo, SqlParserPos pos)
 
Map< String, Object > toJsonMap (Map< String, Object > map)
 

Private Attributes

HeavyDBEncoding encodingType
 
Integer encodingSize
 
HeavyDBGeo geoType
 
boolean isGeography
 
Integer coordinateSystem
 

Detailed Description

Definition at line 11 of file HeavyDBGeoTypeNameSpec.java.

Constructor & Destructor Documentation

com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.HeavyDBGeoTypeNameSpec ( HeavyDBGeo  geoType,
Integer  coordinateSystem,
boolean  isGeography,
Pair< HeavyDBEncoding, Integer >  encodingInfo,
SqlParserPos  pos 
)
inline

Definition at line 18 of file HeavyDBGeoTypeNameSpec.java.

References com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.coordinateSystem, and com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.geoType.

22  {
23  super(SqlTypeName.GEOMETRY, pos);
24  this.geoType = geoType;
25  this.coordinateSystem = coordinateSystem;
26  if (encodingInfo != null) {
27  this.encodingType = encodingInfo.left;
28  this.encodingSize = encodingInfo.right;
29  }
30  }

Member Function Documentation

Map<String, Object> com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.toJsonMap ( Map< String, Object >  map)
inline

Definition at line 32 of file HeavyDBGeoTypeNameSpec.java.

References com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.coordinateSystem, com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.encodingSize, com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.encodingType, and com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.isGeography.

32  {
33  EscapedStringJsonBuilder jsonBuilder = new EscapedStringJsonBuilder();
34  if (isGeography) {
35  jsonBuilder.put(map, "sqltype", "GEOGRAPHY");
36  } else {
37  jsonBuilder.put(map, "sqltype", "GEOMETRY");
38  }
39 
40  if (encodingType != null) {
41  jsonBuilder.put(map, "encodingType", encodingType.name());
42  jsonBuilder.put(map, "encodingSize", encodingSize);
43  }
44 
45  jsonBuilder.put(map, "subtype", geoType.toString());
46  jsonBuilder.put(map, "coordinateSystem", coordinateSystem);
47 
48  return map;
49  }

Member Data Documentation

Integer com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.coordinateSystem
private
Integer com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.encodingSize
private
HeavyDBEncoding com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.encodingType
private
HeavyDBGeo com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.geoType
private
boolean com.mapd.parser.extension.ddl.heavydb.HeavyDBGeoTypeNameSpec.isGeography
private

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