lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1440769 - /lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java
Date Thu, 31 Jan 2013 00:47:16 GMT
Author: rmuir
Date: Thu Jan 31 00:47:15 2013
New Revision: 1440769

URL: http://svn.apache.org/viewvc?rev=1440769&view=rev
Log:
clear nocommit

Modified:
    lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java

Modified: lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java?rev=1440769&r1=1440768&r2=1440769&view=diff
==============================================================================
--- lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java
(original)
+++ lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java
Thu Jan 31 00:47:15 2013
@@ -251,7 +251,6 @@ public abstract class DocValuesConsumer 
       int ord = -1;
       SortedDocValues values;
       BytesRef scratch = new BytesRef();
-      int lastOrd = -1; // last REAL ord we looked up: nocommit: clean this up
       AppendingLongBuffer ordDeltas = new AppendingLongBuffer();
 
       // nocommit can we factor out the compressed fields
@@ -265,7 +264,6 @@ public abstract class DocValuesConsumer 
           ord++;
           if (liveTerms == null || liveTerms.get(ord)) {
             values.lookupOrd(ord, scratch);
-            lastOrd = ord;
             return scratch;
           }
         }
@@ -339,8 +337,7 @@ public abstract class DocValuesConsumer 
           int readerId = top.segmentID;
           ordToReaderId.add(readerId);
 
-          int sourceOrd = top.lastOrd;
-             
+          int sourceOrd = top.ord;             
           int delta = sourceOrd - lastOrds[readerId];
           lastOrds[readerId] = sourceOrd;
           top.ordDeltas.add(delta);



Mime
View raw message