Enum Class VersionType

java.lang.Object
java.lang.Enum<VersionType>
co.elastic.clients.elasticsearch._types.VersionType
All Implemented Interfaces:
JsonEnum, JsonpSerializable, Serializable, Comparable<VersionType>, Constable

@JsonpDeserializable public enum VersionType extends Enum<VersionType> implements JsonEnum
See Also:
  • Enum Constant Details

    • Internal

      public static final VersionType Internal
      Use internal versioning that starts at 1 and increments with each update or delete.
    • External

      public static final VersionType External
      Only index the document if the given version is strictly higher than the version of the stored document or if there is no existing document.
    • ExternalGte

      public static final VersionType ExternalGte
      Only index the document if the given version is equal or higher than the version of the stored document or if there is no existing document. Note: the external_gte version type is meant for special use cases and should be used with care. If used incorrectly, it can result in loss of data.
    • Force

      public static final VersionType Force
  • Field Details

  • Method Details

    • values

      public static VersionType[] 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 VersionType 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