Package io.github.jbellis.jvector.pq
Interface CompressedVectors
- All Superinterfaces:
Accountable
-
Method Summary
Modifier and TypeMethodDescriptionapproximateScoreFunctionFor(float[] q, VectorSimilarityFunction similarityFunction) intintvoidwrite(DataOutput out) write the compressed vectors to the given DataOutputMethods inherited from interface io.github.jbellis.jvector.util.Accountable
ramBytesUsed
-
Method Details
-
write
write the compressed vectors to the given DataOutput- Throws:
IOException
-
approximateScoreFunctionFor
NodeSimilarity.ApproximateScoreFunction approximateScoreFunctionFor(float[] q, VectorSimilarityFunction similarityFunction) - Returns:
- a ScoreFunction suitable for performing search against the compressed vectors, potentially without decompression them first
-
getOriginalSize
int getOriginalSize()- Returns:
- the original size of the vectors, in bytes, before compression
-
getCompressedSize
int getCompressedSize()- Returns:
- the compressed size of the vectors, in bytes
-