You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2016/04/27 20:22:09 UTC

[25/50] [abbrv] lucene-solr:solr-5750: implement grow() for spatial3d intersector: easy speedup

implement grow() for spatial3d intersector: easy speedup


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/e3e91149
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/e3e91149
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/e3e91149

Branch: refs/heads/solr-5750
Commit: e3e9114921da4b208960b1da980a7c8c1ba7b1f7
Parents: 0dc32e3
Author: Robert Muir <rm...@apache.org>
Authored: Sun Apr 24 20:09:05 2016 -0400
Committer: Robert Muir <rm...@apache.org>
Committed: Sun Apr 24 20:09:05 2016 -0400

----------------------------------------------------------------------
 .../apache/lucene/spatial3d/PointInShapeIntersectVisitor.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e3e91149/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java
----------------------------------------------------------------------
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java
index d4e7309..cf94c35 100644
--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java
+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java
@@ -39,6 +39,11 @@ class PointInShapeIntersectVisitor implements IntersectVisitor {
   }
 
   @Override
+  public void grow(int count) {
+    hits.grow(count);
+  }
+
+  @Override
   public void visit(int docID) {
     hits.add(docID);
   }