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()
Fields inherited from class org.apache.solr.core.CachingDirectoryFactory |
byDirectoryCache, byPathCache |
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 |
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.