java.lang.Object
java.lang.Enum<PointType>
org.elasticsearch.compute.aggregation.spatial.PointType
All Implemented Interfaces:
Serializable, Comparable<PointType>, Constable

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

    • GEO

      public static final PointType GEO
    • CARTESIAN

      public static final PointType CARTESIAN
  • Method Details

    • values

      public static PointType[] 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 PointType 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
    • computeEnvelope

      public abstract Optional<org.elasticsearch.geometry.Rectangle> computeEnvelope(org.elasticsearch.geometry.Geometry geo)
    • extractX

      public abstract int extractX(long encoded)
    • extractY

      public abstract int extractY(long encoded)
    • encoder

      public abstract CoordinateEncoder encoder()