You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2013/01/31 01:47:16 UTC

svn commit: r1440769 - /lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java

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);