Package com.databricks.jdbc.api.impl
Class DatabricksGeometry
- java.lang.Object
-
- com.databricks.jdbc.api.impl.AbstractDatabricksGeospatial
-
- com.databricks.jdbc.api.impl.DatabricksGeometry
-
- All Implemented Interfaces:
IDatabricksGeospatial,IGeometry
public class DatabricksGeometry extends AbstractDatabricksGeospatial implements IGeometry
-
-
Constructor Summary
Constructors Constructor Description DatabricksGeometry(String wkt, int srid)Constructs a DatabricksGeometry with the specified WKT and SRID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()Returns the data type of the geospatial object.-
Methods inherited from class com.databricks.jdbc.api.impl.AbstractDatabricksGeospatial
equals, getSRID, getWKB, getWKT, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.databricks.jdbc.api.IDatabricksGeospatial
getSRID, getWKB, getWKT
-
-
-
-
Constructor Detail
-
DatabricksGeometry
public DatabricksGeometry(String wkt, int srid) throws DatabricksValidationException
Constructs a DatabricksGeometry with the specified WKT and SRID.- Parameters:
wkt- the Well-Known Text representation of the geometrysrid- the Spatial Reference System Identifier- Throws:
DatabricksValidationException- if the WKT is invalid
-
-
Method Detail
-
getType
public String getType()
Description copied from class:AbstractDatabricksGeospatialReturns the data type of the geospatial object.- Specified by:
getTypein interfaceIDatabricksGeospatial- Specified by:
getTypein classAbstractDatabricksGeospatial- Returns:
- the type as a string, either "GEOMETRY" or "GEOGRAPHY"
-
-