lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From busc...@apache.org
Subject svn commit: r517007 - /lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java
Date Sun, 11 Mar 2007 20:29:22 GMT
Author: buschmi
Date: Sun Mar 11 13:29:19 2007
New Revision: 517007

URL: http://svn.apache.org/viewvc?view=rev&rev=517007
Log:
Corrected comments and changed a variable name in SegmentTermPositions to better reflect the
meaning of the variable

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java?view=diff&rev=517007&r1=517006&r2=517007
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java Sun Mar 11
13:29:19 2007
@@ -30,7 +30,7 @@
   // these variables are being used to remember information
   // for a lazy skip
   private long lazySkipPointer = 0;
-  private int lazySkipDocCount = 0;
+  private int lazySkipProxCount = 0;
   
   SegmentTermPositions(SegmentReader p) {
     super(p);
@@ -42,7 +42,7 @@
     if (ti != null)
       lazySkipPointer = ti.proxPointer;
     
-    lazySkipDocCount = 0;
+    lazySkipProxCount = 0;
     proxCount = 0;
   }
 
@@ -59,14 +59,14 @@
   }
 
   protected final void skippingDoc() throws IOException {
-    // we remember to skip the remaining positions of the current
-    // document lazily
-    lazySkipDocCount += freq;
+    // we remember to skip a document lazily
+    lazySkipProxCount += freq;
   }
 
   public final boolean next() throws IOException {
-    // we remember to skip a document lazily
-    lazySkipDocCount += proxCount;
+    // we remember to skip the remaining positions of the current
+    // document lazily
+    lazySkipProxCount += proxCount;
     
     if (super.next()) {               // run super
       proxCount = freq;               // note frequency
@@ -85,7 +85,7 @@
   protected void skipProx(long proxPointer) throws IOException {
     // we save the pointer, we might have to skip there lazily
     lazySkipPointer = proxPointer;
-    lazySkipDocCount = 0;
+    lazySkipProxCount = 0;
     proxCount = 0;
   }
 
@@ -115,9 +115,9 @@
       lazySkipPointer = 0;
     }
      
-    if (lazySkipDocCount != 0) {
-      skipPositions(lazySkipDocCount);
-      lazySkipDocCount = 0;
+    if (lazySkipProxCount != 0) {
+      skipPositions(lazySkipProxCount);
+      lazySkipProxCount = 0;
     }
   }
 



Mime
View raw message