Package org.apache.solr.core
Class MockFSDirectoryFactory
- java.lang.Object
-
- org.apache.solr.core.DirectoryFactory
-
- org.apache.solr.core.CachingDirectoryFactory
-
- org.apache.solr.core.StandardDirectoryFactory
-
- org.apache.solr.core.MockFSDirectoryFactory
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.solr.util.plugin.NamedListInitializedPlugin
public class MockFSDirectoryFactory extends org.apache.solr.core.StandardDirectoryFactory
Opens a directory withLuceneTestCase.newFSDirectory(Path)
-
-
Constructor Summary
Constructors Constructor Description MockFSDirectoryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.store.Directory
create(String path, org.apache.lucene.store.LockFactory lockFactory, org.apache.solr.core.DirectoryFactory.DirContext dirContext)
boolean
isAbsolute(String path)
-
Methods inherited from class org.apache.solr.core.StandardDirectoryFactory
createLockFactory, isPersistent, move, normalize, removeDirectory, renameWithOverwrite
-
Methods inherited from class org.apache.solr.core.CachingDirectoryFactory
addCloseListener, close, deleteOldIndexDirectory, doneWithDirectory, exists, get, getLivePaths, getPath, incRef, init, release, remove, remove, remove, remove, stripTrailingSlash
-
-
-
-
Method Detail
-
create
public org.apache.lucene.store.Directory create(String path, org.apache.lucene.store.LockFactory lockFactory, org.apache.solr.core.DirectoryFactory.DirContext dirContext) throws IOException
- Overrides:
create
in classorg.apache.solr.core.StandardDirectoryFactory
- Throws:
IOException
-
isAbsolute
public boolean isAbsolute(String path)
- Overrides:
isAbsolute
in classorg.apache.solr.core.DirectoryFactory
-
-