Enum Class SpatialStrategy

java.lang.Object
java.lang.Enum<SpatialStrategy>
org.elasticsearch.common.geo.SpatialStrategy
All Implemented Interfaces:
Serializable, Comparable<SpatialStrategy>, Constable, Writeable

public enum SpatialStrategy extends Enum<SpatialStrategy> implements Writeable
  • Enum Constant Details

  • Method Details

    • values

      public static SpatialStrategy[] 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 SpatialStrategy 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
    • getStrategyName

      public String getStrategyName()
    • readFromStream

      public static SpatialStrategy readFromStream(StreamInput in) throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • fromString

      public static SpatialStrategy fromString(String strategyName, DeprecationLogger logger)