benwtrent commented on code in PR #11860: URL: https://github.com/apache/lucene/pull/11860#discussion_r1010321394
########## lucene/core/src/java/org/apache/lucene/util/packed/PackedInts.java: ########## @@ -416,6 +416,60 @@ public static interface ReaderIterator { int ord(); } + /** + * Resettable iterator interface, to decode previously saved PackedInts. Useful when multiple + * packed int blocks are stored in the same stream + */ + public static interface ResettableReaderIterator { Review Comment: Yeah, we could add a `reset` field to the `PackedInts` reader iterator. I opted for separation for clarity, but since the implementation is almost EXACTLY the same, it does seem redundant. -- 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