Class GeometryType

Object
io.delta.kernel.types.DataType
io.delta.kernel.types.GeometryType

@Evolving public final class GeometryType extends DataType
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 Details

  • Constructor Details

    • GeometryType

      public GeometryType(String srid)
      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

      public static GeometryType ofDefault()
      Returns a GeometryType with the default SRID.
    • ofSRID

      public static GeometryType ofSRID(String srid)
      Returns a GeometryType with the specified SRID.
      Parameters:
      srid - the Spatial Reference System Identifier (any non-null, non-empty string)
    • getSRID

      public String getSRID()
      Get the Spatial Reference System Identifier.
      Returns:
      the SRID string
    • isNested

      public boolean isNested()
      Description copied from class: DataType
      Returns true iff this data is a nested data type (it logically parameterized by other types).

      For example StructType, ArrayType, MapType are nested data types.

      Specified by:
      isNested in class DataType
    • simpleString

      public String simpleString()
      Serialize this GeometryType to its string representation with minimal info.
      Returns:
      the serialized string representation
    • toString

      public String toString()
      Specified by:
      toString in class DataType
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class DataType
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class DataType