Package io.delta.kernel.types
Class GeometryType
Object
io.delta.kernel.types.DataType
io.delta.kernel.types.GeometryType
The data type representing geometry values. A Geometry must have a fixed Spatial Reference System
Identifier (SRID) that defines the coordinate system.
The SRID is specified as a string The engine is responsible for validating and interpreting the SRID value.
- Since:
- 3.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetSRID()Get the Spatial Reference System Identifier.inthashCode()booleanisNested()Returns true iff this data is a nested data type (it logically parameterized by other types).static GeometryTypeReturns a GeometryType with the default SRID.static GeometryTypeReturns a GeometryType with the specified SRID.Serialize this GeometryType to its string representation with minimal info.toString()Methods inherited from class io.delta.kernel.types.DataType
equivalent, isTypeValueBinaryLike, isWriteCompatible
-
Field Details
-
DEFAULT_SRID
- See Also:
-
-
Constructor Details
-
GeometryType
Create a GeometryType with the specified SRID.- Parameters:
srid- the Spatial Reference System Identifier (any non-null, non-empty string)- Throws:
IllegalArgumentException- if the SRID is null or empty
-
-
Method Details
-
ofDefault
Returns a GeometryType with the default SRID. -
ofSRID
Returns a GeometryType with the specified SRID.- Parameters:
srid- the Spatial Reference System Identifier (any non-null, non-empty string)
-
getSRID
Get the Spatial Reference System Identifier.- Returns:
- the SRID string
-
isNested
public boolean isNested()Description copied from class:DataTypeReturns true iff this data is a nested data type (it logically parameterized by other types).For example StructType, ArrayType, MapType are nested data types.
-
simpleString
Serialize this GeometryType to its string representation with minimal info.- Returns:
- the serialized string representation
-
toString
-
equals
-
hashCode
public int hashCode()
-