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

  • Method Details

    • values

      public static ES940DiskBBQVectorsFormat.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 ES940DiskBBQVectorsFormat.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 ES940DiskBBQVectorsFormat.QuantEncoding fromId(int id)
    • fromBits

      public static ES940DiskBBQVectorsFormat.QuantEncoding fromBits(byte bits)