lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1697064 - /lucene/dev/branches/lucene6699/lucene/spatial3d/src/java/org/apache/lucene/bkdtree3d/BKD3DTreeReader.java
Date Fri, 21 Aug 2015 22:46:19 GMT
Author: mikemccand
Date: Fri Aug 21 22:46:19 2015
New Revision: 1697064

URL: http://svn.apache.org/r1697064
Log:
LUCENE-6699: add assert

Modified:
    lucene/dev/branches/lucene6699/lucene/spatial3d/src/java/org/apache/lucene/bkdtree3d/BKD3DTreeReader.java

Modified: lucene/dev/branches/lucene6699/lucene/spatial3d/src/java/org/apache/lucene/bkdtree3d/BKD3DTreeReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene6699/lucene/spatial3d/src/java/org/apache/lucene/bkdtree3d/BKD3DTreeReader.java?rev=1697064&r1=1697063&r2=1697064&view=diff
==============================================================================
--- lucene/dev/branches/lucene6699/lucene/spatial3d/src/java/org/apache/lucene/bkdtree3d/BKD3DTreeReader.java
(original)
+++ lucene/dev/branches/lucene6699/lucene/spatial3d/src/java/org/apache/lucene/bkdtree3d/BKD3DTreeReader.java
Fri Aug 21 22:46:19 2015
@@ -147,6 +147,10 @@ final class BKD3DTreeReader implements A
       for(int i=0;i<count;i++) {
         int docID = state.in.readInt();
         state.docs.add(docID);
+
+        // Up above in the recursion we asked valueFilter to relate our cell, and it returned
Relation.CELL_INSIDE_SHAPE
+        // so all docs inside this cell better be accepted by the filter:
+        assert state.valueFilter.accept(docID);
       }
 
       return count;



Mime
View raw message