Class Lucene91HnswVectorsReader
java.lang.Object
org.apache.lucene.codecs.KnnVectorsReader
org.apache.lucene.backward_codecs.lucene91.Lucene91HnswVectorsReader
- 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 TypeMethodDescriptionvoid
void
close()
getByteVectorValues
(String field) getFloatVectorValues
(String field) void
search
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
search
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) Methods inherited from class org.apache.lucene.codecs.KnnVectorsReader
finishMerge, getMergeInstance
-
Method Details
-
checkIntegrity
- Specified by:
checkIntegrity
in classKnnVectorsReader
- Throws:
IOException
-
getFloatVectorValues
- Specified by:
getFloatVectorValues
in classKnnVectorsReader
- Throws:
IOException
-
getByteVectorValues
- Specified by:
getByteVectorValues
in classKnnVectorsReader
- Throws:
IOException
-
search
public void search(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) throws IOException - Specified by:
search
in classKnnVectorsReader
- Throws:
IOException
-
search
public void search(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) throws IOException - Specified by:
search
in classKnnVectorsReader
- Throws:
IOException
-
close
- Throws:
IOException
-