Package io.github.jbellis.jvector.pq
Interface VectorCompressor<T>
- All Known Implementing Classes:
BinaryQuantization,ProductQuantization
public interface VectorCompressor<T>
Interface for vector compression. T is the encoded (compressed) vector type;
it will be an array type.
-
Method Summary
Modifier and TypeMethodDescriptioncreateCompressedVectors(Object[] compressedVectors) encode(float[] v) default T[]T[]encodeAll(List<float[]> vectors, ForkJoinPool simdExecutor) voidwrite(DataOutput out)
-
Method Details
-
encodeAll
-
encodeAll
-
encode
-
write
- Throws:
IOException
-
createCompressedVectors
- Parameters:
compressedVectors- must match the type T for this VectorCompressor, but it is declared as Object because we want callers to be able to use this without committing to a specific type T.
-