vsop-479 commented on code in PR #13253:
URL: https://github.com/apache/lucene/pull/13253#discussion_r1615645890


##########
lucene/core/src/java/org/apache/lucene/codecs/lucene90/blocktree/SegmentTermsEnumFrame.java:
##########
@@ -287,6 +287,68 @@ void rewind() {
     */
   }
 
+  // Only rewind, don't force reload block.
+  // Reset readers' position, don't read, decompress.
+  // Current term greater than target, reduce endCount.
+  void rewindWithoutReload() {
+    // Set nextEnt to 0, to prevent force load.
+    nextEnt = 0;
+    suffixesReader.setPosition(0);
+    suffixLengthsReader.setPosition(0);
+    statsReader.setPosition(0);
+    bytesReader.setPosition(0);
+
+    // TODO: Since we only rewind without reload for fist 
floor(currentFrame.fp ==

Review Comment:
   Done.



-- 
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

Reply via email to