Enum Class VectorSimilarityFunctions.BBQType

java.lang.Object
java.lang.Enum<VectorSimilarityFunctions.BBQType>
org.elasticsearch.nativeaccess.VectorSimilarityFunctions.BBQType
All Implemented Interfaces:
Serializable, Comparable<VectorSimilarityFunctions.BBQType>, Constable
Enclosing interface:
VectorSimilarityFunctions

public static enum VectorSimilarityFunctions.BBQType extends Enum<VectorSimilarityFunctions.BBQType>
The various flavors of BBQ indices. Single vector score returns results as a long.
  • Enum Constant Details

  • Method Details

    • values

      public static VectorSimilarityFunctions.BBQType[] 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 VectorSimilarityFunctions.BBQType 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
    • dataBits

      public byte dataBits()
    • queryBits

      public byte queryBits()
    • layout

    • queryBytesPerDocByte

      public int queryBytesPerDocByte()
      Number of query bytes per doc byte, for buffer-size bounds checks.
      • STRIPED: query is bit-plane transposed at queryBits planes; total query bytes = dims * queryBits / 8 = docBytes * queryBits / dataBits (e.g. D1Q4: x4, D2Q4: x2, D4Q4: x1).
      • PACKED: query is a flat one-byte-per-value buffer; total query bytes = dims = docBytes * 8 / dataBits (the doc packs 8/dataBits values per byte -- e.g. D2Q4_PACKED: x4, flat one byte per value).