iverase commented on a change in pull request #486: URL: https://github.com/apache/lucene/pull/486#discussion_r761251552
########## File path: lucene/core/src/java/org/apache/lucene/index/PointValues.java ########## @@ -323,10 +355,18 @@ default void grow(int count) {} */ public final void intersect(IntersectVisitor visitor) throws IOException { final PointTree pointTree = getPointTree(); - intersect(visitor, pointTree); + intersect(wrapIntersectVisitor(visitor), pointTree); assert pointTree.moveToParent() == false; } + /** + * Adds the possibility of wrapping a provided {@link IntersectVisitor} in {@link + * #intersect(IntersectVisitor)}. + */ + protected IntersectVisitor wrapIntersectVisitor(IntersectVisitor visitor) throws IOException { + return visitor; + } Review comment: agreed I will work on that -- 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