You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/11/12 00:32:44 UTC

svn commit: r1201100 - in /lucene/dev/branches/branch_3x: ./ lucene/src/java/org/apache/lucene/search/FieldComparator.java

Author: mikemccand
Date: Fri Nov 11 23:32:44 2011
New Revision: 1201100

URL: http://svn.apache.org/viewvc?rev=1201100&view=rev
Log:
add comments

Modified:
    lucene/dev/branches/branch_3x/   (props changed)
    lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/search/FieldComparator.java

Modified: lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/search/FieldComparator.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/search/FieldComparator.java?rev=1201100&r1=1201099&r2=1201100&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/search/FieldComparator.java (original)
+++ lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/search/FieldComparator.java Fri Nov 11 23:32:44 2011
@@ -250,6 +250,8 @@ public abstract class FieldComparator<T>
 
     @Override
     public void setNextReader(IndexReader reader, int docBase) throws IOException {
+      // NOTE: must do this before calling super otherwise
+      // we compute the docsWithField Bits twice!
       currentReaderValues = FieldCache.DEFAULT.getBytes(reader, field, parser, missingValue != null);
       super.setNextReader(reader, docBase);
     }
@@ -368,6 +370,8 @@ public abstract class FieldComparator<T>
 
     @Override
     public void setNextReader(IndexReader reader, int docBase) throws IOException {
+      // NOTE: must do this before calling super otherwise
+      // we compute the docsWithField Bits twice!
       currentReaderValues = FieldCache.DEFAULT.getDoubles(reader, field, parser, missingValue != null);
       super.setNextReader(reader, docBase);
     }
@@ -444,6 +448,8 @@ public abstract class FieldComparator<T>
 
     @Override
     public void setNextReader(IndexReader reader, int docBase) throws IOException {
+      // NOTE: must do this before calling super otherwise
+      // we compute the docsWithField Bits twice!
       currentReaderValues = FieldCache.DEFAULT.getFloats(reader, field, parser, missingValue != null);
       super.setNextReader(reader, docBase);
     }
@@ -524,6 +530,8 @@ public abstract class FieldComparator<T>
 
     @Override
     public void setNextReader(IndexReader reader, int docBase) throws IOException {
+      // NOTE: must do this before calling super otherwise
+      // we compute the docsWithField Bits twice!
       currentReaderValues = FieldCache.DEFAULT.getInts(reader, field, parser, missingValue != null);
       super.setNextReader(reader, docBase);
     }
@@ -600,6 +608,8 @@ public abstract class FieldComparator<T>
 
     @Override
     public void setNextReader(IndexReader reader, int docBase) throws IOException {
+      // NOTE: must do this before calling super otherwise
+      // we compute the docsWithField Bits twice!
       currentReaderValues = FieldCache.DEFAULT.getLongs(reader, field, parser, missingValue != null);
       super.setNextReader(reader, docBase);
     }
@@ -726,6 +736,8 @@ public abstract class FieldComparator<T>
 
     @Override
     public void setNextReader(IndexReader reader, int docBase) throws IOException {
+      // NOTE: must do this before calling super otherwise
+      // we compute the docsWithField Bits twice!
       currentReaderValues = FieldCache.DEFAULT.getShorts(reader, field, parser, missingValue != null);
       super.setNextReader(reader, docBase);
     }