Apache Lucene open-source search software
implement grow() for spatial3d intersector: easy speedup
Robert Muire3e9114921da
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.javaindex d4e730999dc..cf94c35b2c9 100644--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java@@ -38,6 +38,11 @@ class PointInShapeIntersectVisitor implements IntersectVisitor {this.shapeBounds = shapeBounds;}+ @Override+ public void grow(int count) {+ hits.grow(count);+ }+@Overridepublic void visit(int docID) {hits.add(docID);