mayya-sharipova commented on a change in pull request #315: URL: https://github.com/apache/lucene/pull/315#discussion_r717058689
########## File path: lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90HnswVectorsReader.java ########## @@ -505,13 +571,47 @@ public int nextNeighbor() throws IOException { } @Override - public int maxLevel() throws IOException { - return 0; + public int numOfLevels() throws IOException { + return entry.numOfLevels; } @Override public int entryNode() throws IOException { - return 0; + return entryNode; + } + + @Override + public DocIdSetIterator getAllNodesOnLevel(int level) { + return new DocIdSetIterator() { + int[] nodes = level == 0 ? null : entry.nodesByLevel.get(level); + int numOfNodes = level == 0 ? size() : nodes.length; + int idx = -1; + + @Override + public int docID() { + return level == 0 ? idx : nodes[idx]; Review comment: Addressed in 7e60c4d -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org