jpountz commented on code in PR #12729:
URL: https://github.com/apache/lucene/pull/12729#discussion_r1379282330
##########
lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99HnswVectorsReader.java:
##########
@@ -399,41 +281,30 @@ private HnswGraph getGraph(FieldEntry entry) throws
IOException {
@Override
public void close() throws IOException {
- IOUtils.close(vectorData, vectorIndex, quantizedVectorData);
+ IOUtils.close(flatVectorsReader, vectorIndex);
}
@Override
- public OffHeapQuantizedByteVectorValues getQuantizedVectorValues(String
field)
- throws IOException {
- FieldEntry fieldEntry = fields.get(field);
- if (fieldEntry == null || fieldEntry.hasQuantizedVectors() == false) {
- return null;
+ public QuantizedByteVectorValues getQuantizedVectorValues(String field)
throws IOException {
+ if (flatVectorsReader instanceof QuantizedVectorsReader) {
+ return ((QuantizedVectorsReader)
flatVectorsReader).getQuantizedVectorValues(field);
Review Comment:
Bump: this sounds like a good addition to the flat vectors reader?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]