Class Lucene90HnswVectorsReader
java.lang.Object
org.apache.lucene.codecs.KnnVectorsReader
org.apache.lucene.backward_codecs.lucene90.Lucene90HnswVectorsReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Accountable
Reads vectors from the index segments along with index data structures supporting KNN search.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
getGraphValues
(String field) Get knn graph values; used for testinggetVectorValues
(String field) long
Methods inherited from class org.apache.lucene.codecs.KnnVectorsReader
getMergeInstance
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Method Details
-
ramBytesUsed
public long ramBytesUsed() -
checkIntegrity
- Specified by:
checkIntegrity
in classKnnVectorsReader
- Throws:
IOException
-
getVectorValues
- Specified by:
getVectorValues
in classKnnVectorsReader
- Throws:
IOException
-
search
public TopDocs search(String field, float[] target, int k, Bits acceptDocs, int visitedLimit) throws IOException - Specified by:
search
in classKnnVectorsReader
- Throws:
IOException
-
getGraphValues
Get knn graph values; used for testing- Throws:
IOException
-
close
- Throws:
IOException
-