benwtrent commented on code in PR #15709:
URL: https://github.com/apache/lucene/pull/15709#discussion_r2813567809


##########
lucene/core/src/java/org/apache/lucene/search/comparators/TermOrdValComparator.java:
##########
@@ -488,6 +489,13 @@ private void updateCompetitiveIterator() throws 
IOException {
     public DocIdSetIterator competitiveIterator() {
       return competitiveState != null ? competitiveState.iterator : null;
     }
+
+    /** Returns true if the competitive iterator has been adaptively disabled. 
*/
+    boolean isSkippingDisabled() {
+      // index-based competitive iterators are never disabled
+      return competitiveState instanceof SkipperBasedCompetitiveState 
skipperState
+          && skipperState.state == SkipperBasedCompetitiveState.State.DISABLED;

Review Comment:
   could you indicate that this is only used in testing?



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

Reply via email to