Module org.elasticsearch.server
Enum Class ES940DiskBBQVectorsFormat.QuantEncoding
java.lang.Object
java.lang.Enum<ES940DiskBBQVectorsFormat.QuantEncoding>
org.elasticsearch.index.codec.vectors.diskbbq.es94.ES940DiskBBQVectorsFormat.QuantEncoding
- All Implemented Interfaces:
Serializable,Comparable<ES940DiskBBQVectorsFormat.QuantEncoding>,Constable
- Enclosing class:
ES940DiskBBQVectorsFormat
public static enum ES940DiskBBQVectorsFormat.QuantEncoding
extends Enum<ES940DiskBBQVectorsFormat.QuantEncoding>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbytebits()intdiscretizedDimensions(int dimensions) fromBits(byte bits) 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_STRIPED
-
SEVEN_BIT_SYMMETRIC
-
FOUR_BIT_SYMMETRIC_PACKED
-
-
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
-
fromBits
-