Package org.elasticsearch.nativeaccess
Enum Class VectorSimilarityFunctions.DataType
java.lang.Object
java.lang.Enum<VectorSimilarityFunctions.DataType>
org.elasticsearch.nativeaccess.VectorSimilarityFunctions.DataType
- All Implemented Interfaces:
Serializable,Comparable<VectorSimilarityFunctions.DataType>,Constable
- Enclosing interface:
VectorSimilarityFunctions
public static enum VectorSimilarityFunctions.DataType
extends Enum<VectorSimilarityFunctions.DataType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintbits()Returns the enum constant of this class with the specified name.static VectorSimilarityFunctions.DataType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INT7U
Unsigned int7. Single vector score returns results as an int. -
INT4
4-bit packed nibble. Two values per byte; single vector score returns results as an int. -
INT8
1-byte int. Single vector score returns results as an int. -
FLOAT32
4-byte float. Single vector score returns results as a float.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
bits
public int bits()
-