org.apache.solr.core
Class MockFSDirectoryFactory

java.lang.Object
  extended by org.apache.solr.core.DirectoryFactory
      extended by org.apache.solr.core.CachingDirectoryFactory
          extended by org.apache.solr.core.MockFSDirectoryFactory
All Implemented Interfaces:
Closeable, org.apache.solr.util.plugin.NamedListInitializedPlugin

public class MockFSDirectoryFactory
extends org.apache.solr.core.CachingDirectoryFactory

Opens a directory with LuceneTestCase.newFSDirectory(File)


Field Summary
 
Fields inherited from class org.apache.solr.core.CachingDirectoryFactory
byDirectoryCache, byPathCache
 
Constructor Summary
MockFSDirectoryFactory()
           
 
Method Summary
 org.apache.lucene.store.Directory create(String path)
           
 
Methods inherited from class org.apache.solr.core.CachingDirectoryFactory
close, exists, get, get, incRef, init, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockFSDirectoryFactory

public MockFSDirectoryFactory()
Method Detail

create

public org.apache.lucene.store.Directory create(String path)
                                         throws IOException
Specified by:
create in class org.apache.solr.core.CachingDirectoryFactory
Throws:
IOException


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.