Enum Class DenseVectorElementType

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

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

    • Bit

      public static final DenseVectorElementType Bit
      Indexes a single bit per dimension. Useful for very high-dimensional vectors or models that specifically support bit vectors.

      NOTE: when using bit, the number of dimensions must be a multiple of 8 and must represent the number of bits.

    • Byte

      public static final DenseVectorElementType Byte
      Indexes a 1-byte integer value per dimension.
    • Float

      public static final DenseVectorElementType Float
      Indexes a 4-byte floating-point value per dimension.
  • Field Details

  • Method Details

    • values

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