org.apache.solr.core
Class MockDirectoryFactory

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

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

Opens a directory with LuceneTestCase.newDirectory()


Field Summary
 
Fields inherited from class org.apache.solr.core.CachingDirectoryFactory
byDirectoryCache, byPathCache
 
Constructor Summary
MockDirectoryFactory()
           
 
Method Summary
protected  org.apache.lucene.store.Directory create(String path)
           
 boolean exists(String path)
           
 
Methods inherited from class org.apache.solr.core.CachingDirectoryFactory
close, 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

MockDirectoryFactory

public MockDirectoryFactory()
Method Detail

create

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

exists

public boolean exists(String path)
Overrides:
exists in class org.apache.solr.core.CachingDirectoryFactory


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