Package com.couchbase.lite
Class VectorEncoding
java.lang.Object
com.couchbase.lite.VectorEncoding
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Scalar Quantizer Encoding Type -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorEncoding
none()
No encoding; 4 bytes per dimension, no data lossstatic VectorEncoding
productQuantizer
(long subquantizers, long bits) Product Quantizer encoding.static VectorEncoding
Scalar Quantizer encoding
-
Method Details
-
none
No encoding; 4 bytes per dimension, no data loss -
scalarQuantizer
@NonNull public static VectorEncoding scalarQuantizer(@NonNull VectorEncoding.ScalarQuantizerType type) Scalar Quantizer encoding -
productQuantizer
Product Quantizer encoding.- Parameters:
subquantizers
- Number of subquantizers (divisor of the # of dimension.)bits
- Number of bits: between 4 and 12 inclusive.
-