Class Lucene94HnswVectorsReader
java.lang.Object
org.apache.lucene.codecs.KnnVectorsReader
org.apache.lucene.backward_codecs.lucene94.Lucene94HnswVectorsReader
- All Implemented Interfaces:
Closeable,AutoCloseable
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()getByteVectorValues(String field) getFloatVectorValues(String field) voidsearch(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) voidsearch(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) Methods inherited from class org.apache.lucene.codecs.KnnVectorsReader
finishMerge, getMergeInstance
-
Method Details
-
checkIntegrity
- Specified by:
checkIntegrityin classKnnVectorsReader- Throws:
IOException
-
getFloatVectorValues
- Specified by:
getFloatVectorValuesin classKnnVectorsReader- Throws:
IOException
-
getByteVectorValues
- Specified by:
getByteVectorValuesin classKnnVectorsReader- Throws:
IOException
-
search
public void search(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) throws IOException - Specified by:
searchin classKnnVectorsReader- Throws:
IOException
-
search
public void search(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) throws IOException - Specified by:
searchin classKnnVectorsReader- Throws:
IOException
-
close
- Throws:
IOException
-