CBLVectorEncoding
@interface CBLVectorEncoding : NSObject
ENTERPRISE EDITION ONLY
Vector encoding type to use in vector indexes.
-
No encoding; 4 bytes per dimension, no data loss.
Declaration
Objective-C
+ (nonnull instancetype)none;
-
Scalar Quantizer encoding.
Declaration
Objective-C
+ (nonnull instancetype)scalarQuantizerWithType:(id)type;
Parameters
type
The type of Scalar Quantizer
-
Product Quantizer encoding.
Declaration
Objective-C
+ (nonnull instancetype)productQuantizerWithSubquantizers: (unsigned int)subquantizers bits:(unsigned int)bits;
Parameters
subquantizers
Number of subquantizers. Must be > 1 and a factor of vector dimensions.
bits
Number of bits. Must be >= 4 and <= 12.
-
Unavailable
Not available
Declaration
Objective-C
- (nonnull instancetype)init;