Module org.elasticsearch.server
Enum Class ESNextDiskBBQVectorsFormat.QuantEncoding
java.lang.Object
java.lang.Enum<ESNextDiskBBQVectorsFormat.QuantEncoding>
org.elasticsearch.index.codec.vectors.diskbbq.next.ESNextDiskBBQVectorsFormat.QuantEncoding
- All Implemented Interfaces:
Serializable,Comparable<ESNextDiskBBQVectorsFormat.QuantEncoding>,Constable
- Enclosing class:
ESNextDiskBBQVectorsFormat
public static enum ESNextDiskBBQVectorsFormat.QuantEncoding
extends Enum<ESNextDiskBBQVectorsFormat.QuantEncoding>
-
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 TypeMethodDescriptionbytebits()intdiscretizedDimensions(int dimensions) fromId(int id) intgetDocPackedLength(int dimensions) Return the number of bytes required to store a packed vector of the given dimensions.intgetQueryPackedLength(int dimensions) intid()abstract voidpack(int[] quantized, byte[] destination) abstract voidpackQuery(int[] quantized, byte[] destination) byteReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONE_BIT_4BIT_QUERY
-
TWO_BIT_4BIT_QUERY
-
FOUR_BIT_SYMMETRIC
-
-
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
-
pack
public abstract void pack(int[] quantized, byte[] destination) -
packQuery
public abstract void packQuery(int[] quantized, byte[] destination) -
id
public int id() -
bits
public byte bits() -
queryBits
public byte queryBits() -
discretizedDimensions
public int discretizedDimensions(int dimensions) -
getDocPackedLength
public int getDocPackedLength(int dimensions) Return the number of bytes required to store a packed vector of the given dimensions. -
getQueryPackedLength
public int getQueryPackedLength(int dimensions) -
fromId
-