lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1199119 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java
Date Tue, 08 Nov 2011 06:12:32 GMT
Author: rmuir
Date: Tue Nov  8 06:12:31 2011
New Revision: 1199119

URL: http://svn.apache.org/viewvc?rev=1199119&view=rev
Log:
don't clone unused file in simpletext

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java?rev=1199119&r1=1199118&r2=1199119&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java
(original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/simpletext/SimpleTextFieldsReader.java
Tue Nov  8 06:12:31 2011
@@ -116,7 +116,6 @@ class SimpleTextFieldsReader extends Fie
   }
 
   private class SimpleTextTermsEnum extends TermsEnum {
-    private final IndexInput in;
     private final IndexOptions indexOptions;
     private int docFreq;
     private long totalTermFreq;
@@ -125,7 +124,6 @@ class SimpleTextFieldsReader extends Fie
     private final BytesRefFSTEnum<PairOutputs.Pair<Long,PairOutputs.Pair<Long,Long>>>
fstEnum;
 
     public SimpleTextTermsEnum(FST<PairOutputs.Pair<Long,PairOutputs.Pair<Long,Long>>>
fst, IndexOptions indexOptions) throws IOException {
-      this.in = (IndexInput) SimpleTextFieldsReader.this.in.clone();
       this.indexOptions = indexOptions;
       fstEnum = new BytesRefFSTEnum<PairOutputs.Pair<Long,PairOutputs.Pair<Long,Long>>>(fst);
     }



Mime
View raw message