Class VectorEncoding

java.lang.Object
com.couchbase.lite.VectorEncoding

public abstract class VectorEncoding extends Object
  • Method Details

    • none

      @NonNull public static VectorEncoding none()
      No encoding; 4 bytes per dimension, no data loss
    • scalarQuantizer

      @NonNull public static VectorEncoding scalarQuantizer(@NonNull VectorEncoding.ScalarQuantizerType type)
      Scalar Quantizer encoding
    • productQuantizer

      @NonNull public static VectorEncoding productQuantizer(long subquantizers, long bits)
      Product Quantizer encoding.
      Parameters:
      subquantizers - Number of subquantizers (divisor of the # of dimension.)
      bits - Number of bits: between 4 and 12 inclusive.