Enum Class SpatialCoordinateTypes

java.lang.Object
java.lang.Enum<SpatialCoordinateTypes>
org.elasticsearch.xpack.esql.core.util.SpatialCoordinateTypes
All Implemented Interfaces:
Serializable, Comparable<SpatialCoordinateTypes>, Constable

public enum SpatialCoordinateTypes extends Enum<SpatialCoordinateTypes>
  • Enum Constant Details

  • Method Details

    • values

      public static SpatialCoordinateTypes[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SpatialCoordinateTypes valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • validator

      protected org.elasticsearch.geometry.utils.GeometryValidator validator()
    • longAsPoint

      public abstract org.elasticsearch.geometry.Point longAsPoint(long encoded)
    • pointAsLong

      public abstract long pointAsLong(double x, double y)
    • wkbAsLong

      public long wkbAsLong(org.apache.lucene.util.BytesRef wkb)
    • wkbAsPoint

      public org.elasticsearch.geometry.Point wkbAsPoint(org.apache.lucene.util.BytesRef wkb)
    • longAsWkb

      public org.apache.lucene.util.BytesRef longAsWkb(long encoded)
    • asWkt

      public String asWkt(org.elasticsearch.geometry.Geometry geometry)
    • asWkb

      public org.apache.lucene.util.BytesRef asWkb(org.elasticsearch.geometry.Geometry geometry)
    • wktToWkb

      public org.apache.lucene.util.BytesRef wktToWkb(String wkt)
    • wkbToWkt

      public String wkbToWkt(org.apache.lucene.util.BytesRef wkb)
    • wkbToGeometry

      public org.elasticsearch.geometry.Geometry wkbToGeometry(org.apache.lucene.util.BytesRef wkb)