org.apache.lucene.store.Directory



API Populatity

27 Client projects

Project: org.apache

Project apache/lucene-solr in file ...org.apache.lucene.index.TestIndexWriterConfig.java (2010-12-26)
@@ -17,8 +17,6 @@ package org.apache.lucene.index;
  * limitations under the License.
  */
 
-import static org.junit.Assert.*;
-
 import java.io.IOException;
 import java.lang.reflect.Field;
 import java.lang.reflect.Method;
@@ -32,7 +30,6 @@ import org.apache.lucene.index.IndexWriter.IndexReaderWarmer;
 import org.apache.lucene.index.IndexWriterConfig.OpenMode;
 import org.apache.lucene.search.DefaultSimilarity;
 import org.apache.lucene.search.Similarity;
-import org.apache.lucene.store.Directory;
 import org.apache.lucene.util.LuceneTestCase;
 import org.junit.Test;
 
Project apache/lucene-solr in file ...g.apache.lucene.index.TestCodecHoldsOpenFiles.java (2014-09-23)
@@ -22,7 +22,6 @@ import java.io.IOException;
 import org.apache.lucene.document.Document;
 import org.apache.lucene.document.TextField;
 import org.apache.lucene.store.BaseDirectoryWrapper;
-import org.apache.lucene.store.Directory;
 import org.apache.lucene.util.LuceneTestCase;
 import org.apache.lucene.util.TestUtil;
 
@@ -53,7 +52,7 @@ public class TestCodecHoldsOpenFiles extends LuceneTestCase {
       }
     }
 
-    for(AtomicReaderContext cxt : r.leaves()) {
+    for(LeafReaderContext cxt : r.leaves()) {
       TestUtil.checkReader(cxt.reader());
     }
 
Project apache/lucene-solr in file ...java.org.apache.lucene.codecs.DocValuesFormat.java (2012-01-29)
@@ -23,10 +23,9 @@ import java.util.Set;
 import org.apache.lucene.index.PerDocWriteState;
 import org.apache.lucene.index.SegmentInfo;
 import org.apache.lucene.index.SegmentReadState;
-import org.apache.lucene.store.Directory;
 
 public abstract class DocValuesFormat {
   public abstract PerDocConsumer docsConsumer(PerDocWriteState state) throws IOException;
   public abstract PerDocProducer docsProducer(SegmentReadState state) throws IOException;
-  public abstract void files(Directory dir, SegmentInfo info, Set<String> files) throws IOException;
+  public abstract void files(SegmentInfo info, Set<String> files) throws IOException;
 }