org.apache.solr.core
Class MockDirectoryFactory
java.lang.Object
org.apache.solr.core.DirectoryFactory
org.apache.solr.core.CachingDirectoryFactory
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()
Nested classes/interfaces inherited from class org.apache.solr.core.CachingDirectoryFactory |
org.apache.solr.core.CachingDirectoryFactory.CloseListener |
Fields inherited from class org.apache.solr.core.CachingDirectoryFactory |
byDirectoryCache, byPathCache, closeListeners |
Methods inherited from class org.apache.solr.core.CachingDirectoryFactory |
addCloseListener, close, doneWithDirectory, get, get, incRef, init, release |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockDirectoryFactory
public MockDirectoryFactory()
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.