Enum Class ScriptSortType

java.lang.Object
java.lang.Enum<ScriptSortType>
org.opensearch.client.opensearch._types.ScriptSortType
All Implemented Interfaces:
Serializable, Comparable<ScriptSortType>, Constable, JsonEnum, JsonpSerializable

@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public enum ScriptSortType extends Enum<ScriptSortType> implements JsonEnum
  • Enum Constant Details

    • Number

      public static final ScriptSortType Number
      The script returns a numeric value.
    • String

      public static final ScriptSortType String
      The script returns a string value.
    • Version

      public static final ScriptSortType Version
      The script returns a version value.
  • Field Details

  • Method Details

    • values

      public static ScriptSortType[] 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 ScriptSortType 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
    • jsonValue

      public String jsonValue()
      Specified by:
      jsonValue in interface JsonEnum