iverase commented on a change in pull request #486:
URL: https://github.com/apache/lucene/pull/486#discussion_r761995196



##########
File path: 
lucene/core/src/java/org/apache/lucene/index/ExitableDirectoryReader.java
##########
@@ -505,80 +504,29 @@ public long size() {
     }
 
     @Override
-    public void visitDocIDs(PointValues.IntersectVisitor visitor) throws 
IOException {
+    public void visitDocIDs(PointValues.DocIdsVisitor docIdsVisitor) throws 
IOException {
       checkAndThrow();
-      in.visitDocIDs(visitor);
+      in.visitDocIDs(
+          docID -> {
+            checkAndThrowWithSampling();

Review comment:
       I changed the implementation so we actually only do checks every 
`DEFAULT_MAX_POINTS_IN_LEAF_NODE`. 




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