lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1229408 - in /lucene/dev/branches/branch_3x/lucene/src: test-framework/java/org/apache/lucene/index/SlowMultiReaderWrapper.java test/org/apache/lucene/index/TestFilterIndexReader.java
Date Mon, 09 Jan 2012 22:50:27 GMT
Author: mikemccand
Date: Mon Jan  9 22:50:27 2012
New Revision: 1229408

URL: http://svn.apache.org/viewvc?rev=1229408&view=rev
Log:
LUCENE-3679: add a couple more getFIS impls

Modified:
    lucene/dev/branches/branch_3x/lucene/src/test-framework/java/org/apache/lucene/index/SlowMultiReaderWrapper.java
    lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestFilterIndexReader.java

Modified: lucene/dev/branches/branch_3x/lucene/src/test-framework/java/org/apache/lucene/index/SlowMultiReaderWrapper.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/test-framework/java/org/apache/lucene/index/SlowMultiReaderWrapper.java?rev=1229408&r1=1229407&r2=1229408&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/test-framework/java/org/apache/lucene/index/SlowMultiReaderWrapper.java
(original)
+++ lucene/dev/branches/branch_3x/lucene/src/test-framework/java/org/apache/lucene/index/SlowMultiReaderWrapper.java
Mon Jan  9 22:50:27 2012
@@ -46,4 +46,13 @@ public class SlowMultiReaderWrapper exte
   public String toString() {
     return "SlowMultiReaderWrapper(" + super.toString() + ")";
   }
+
+  @Override
+  public FieldInfos getFieldInfos() {
+    final FieldInfos fieldInfos = new FieldInfos();
+    for(IndexReader subReader : subReaders) {
+      fieldInfos.add(subReader.getFieldInfos());
+    }
+    return fieldInfos;
+  }
 }

Modified: lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestFilterIndexReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestFilterIndexReader.java?rev=1229408&r1=1229407&r2=1229408&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestFilterIndexReader.java
(original)
+++ lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestFilterIndexReader.java
Mon Jan  9 22:50:27 2012
@@ -31,6 +31,7 @@ import org.apache.lucene.document.Docume
 import org.apache.lucene.document.Field;
 import org.apache.lucene.store.Directory;
 import org.apache.lucene.util.LuceneTestCase;
+import org.apache.lucene.util.ReaderUtil;
 
 public class TestFilterIndexReader extends LuceneTestCase {
 
@@ -85,6 +86,11 @@ public class TestFilterIndexReader exten
     public TermPositions termPositions() throws IOException {
       return new TestTermPositions(in.termPositions());
     }
+
+    @Override
+    public FieldInfos getFieldInfos() {
+      return ReaderUtil.getMergedFieldInfos(in);
+    }
   }
 
 



Mime
View raw message