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>
  • Enum Constant Details

  • Method Details

    • values

      public static ESNextDiskBBQVectorsFormat.QuantEncoding[] 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 ESNextDiskBBQVectorsFormat.QuantEncoding 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
    • 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

      public static ESNextDiskBBQVectorsFormat.QuantEncoding fromId(int id)