Interface CompressedVectors

All Superinterfaces:
Accountable
All Known Implementing Classes:
BQVectors, PQVectors

public interface CompressedVectors extends Accountable
  • Method Details

    • write

      void write(DataOutput out) throws IOException
      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
    • getCompressor

      VectorCompressor<?> getCompressor()
      Returns:
      the compressor used by this instance