lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1595006 [3/3] - in /lucene/dev/branches/lucene5675/lucene/core/src/java/org/apache/lucene: codecs/PostingsReaderBase.java codecs/blocktree/BlockTreeTermsReader.java codecs/blocktree/Stats.java index/CheckIndex.java
Date Thu, 15 May 2014 18:22:10 GMT
Modified: lucene/dev/branches/lucene5675/lucene/core/src/java/org/apache/lucene/codecs/blocktree/Stats.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene5675/lucene/core/src/java/org/apache/lucene/codecs/blocktree/Stats.java?rev=1595006&r1=1595005&r2=1595006&view=diff
==============================================================================
--- lucene/dev/branches/lucene5675/lucene/core/src/java/org/apache/lucene/codecs/blocktree/Stats.java
(original)
+++ lucene/dev/branches/lucene5675/lucene/core/src/java/org/apache/lucene/codecs/blocktree/Stats.java
Thu May 15 18:22:09 2014
@@ -99,7 +99,7 @@ public class Stats {
     this.field = field;
   }
 
-  void startBlock(BlockTreeTermsReader.FieldReader.SegmentTermsEnum.Frame frame, boolean
isFloor) {
+  void startBlock(FieldReader.SegmentTermsEnum.Frame frame, boolean isFloor) {
     totalBlockCount++;
     if (isFloor) {
       if (frame.fp == frame.fpOrig) {
@@ -119,7 +119,7 @@ public class Stats {
     totalBlockStatsBytes += frame.statsReader.length();
   }
 
-  void endBlock(BlockTreeTermsReader.FieldReader.SegmentTermsEnum.Frame frame) {
+  void endBlock(FieldReader.SegmentTermsEnum.Frame frame) {
     final int termCount = frame.isLeafBlock ? frame.entCount : frame.state.termBlockOrd;
     final int subBlockCount = frame.entCount - termCount;
     totalTermCount += termCount;

Modified: lucene/dev/branches/lucene5675/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene5675/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java?rev=1595006&r1=1595005&r2=1595006&view=diff
==============================================================================
--- lucene/dev/branches/lucene5675/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
(original)
+++ lucene/dev/branches/lucene5675/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
Thu May 15 18:22:09 2014
@@ -31,6 +31,7 @@ import java.util.Map;
 import org.apache.lucene.codecs.Codec;
 import org.apache.lucene.codecs.PostingsFormat;
 import org.apache.lucene.codecs.blocktree.BlockTreeTermsReader;
+import org.apache.lucene.codecs.blocktree.FieldReader;
 import org.apache.lucene.codecs.blocktree.Stats;
 import org.apache.lucene.index.CheckIndex.Status.DocValuesStatus;
 import org.apache.lucene.index.FieldInfo.IndexOptions;
@@ -1117,8 +1118,8 @@ public class CheckIndex {
         // docs got deleted and then merged away):
         
       } else {
-        if (fieldTerms instanceof BlockTreeTermsReader.FieldReader) {
-          final Stats stats = ((BlockTreeTermsReader.FieldReader) fieldTerms).computeStats();
+        if (fieldTerms instanceof FieldReader) {
+          final Stats stats = ((FieldReader) fieldTerms).computeStats();
           assert stats != null;
           if (status.blockTreeStats == null) {
             status.blockTreeStats = new HashMap<>();



Mime
View raw message