java.lang.Object
org.apache.cassandra.index.sai.disk.v1.vector.DiskAnn
All Implemented Interfaces:
AutoCloseable

public class DiskAnn extends Object implements AutoCloseable
  • Constructor Details

  • Method Details

    • ramBytesUsed

      public long ramBytesUsed()
    • size

      public int size()
    • getCompressedVectors

      public io.github.jbellis.jvector.pq.CompressedVectors getCompressedVectors()
    • search

      public CloseableIterator<RowIdWithScore> search(float[] queryVector, int topK, int limit, io.github.jbellis.jvector.util.Bits acceptBits, IntConsumer nodesVisitedConsumer)
      Returns:
      Row IDs associated with the topK vectors near the query
    • getApproximateScoreFunction

      public io.github.jbellis.jvector.graph.NeighborSimilarity.ApproximateScoreFunction getApproximateScoreFunction(float[] queryVector)
    • getExactScoreFunction

      public io.github.jbellis.jvector.graph.NeighborSimilarity.ExactScoreFunction getExactScoreFunction(float[] queryVector, io.github.jbellis.jvector.graph.GraphIndex.View<float[]> view)
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException
    • getOrdinalsView

      public OnDiskOrdinalsMap.OrdinalsView getOrdinalsView()
    • getView

      public io.github.jbellis.jvector.graph.GraphIndex.View<float[]> getView()
      Get the graph view, callers must close the view.
      Returns: