Enum Class SyntheticSourceKeepEnum

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

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

    • None

      public static final SyntheticSourceKeepEnum None
      Synthetic source diverges from the original source (default)
    • Arrays

      public static final SyntheticSourceKeepEnum Arrays
      Arrays of the corresponding field or object preserve the original element ordering and duplicate elements. The synthetic source fragment for such arrays is not guaranteed to match the original source exactly, e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5]. The exact format may change in the future, in an effort to reduce the storage overhead of this option.
    • All

      public static final SyntheticSourceKeepEnum All
      The source for both singleton instances and arrays of the corresponding field or object gets recorded. When applied to objects, the source of all sub-objects and sub-fields gets captured. Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
  • Field Details

  • Method Details

    • values

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