public class MockDirectoryFactory extends EphemeralDirectoryFactory
LuceneTestCase.newDirectory()
CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListener
DirectoryFactory.DirContext
Modifier and Type | Field and Description |
---|---|
static String |
SOLR_TESTS_ALLOW_READING_FILES_STILL_OPEN_FOR_WRITE |
byDirectoryCache, byPathCache, closeListeners, removeEntries
IOCONTEXT_NO_CACHE
Constructor and Description |
---|
MockDirectoryFactory() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.store.Directory |
create(String path,
DirectoryFactory.DirContext dirContext)
Creates a new Directory for a given path.
|
boolean |
isAbsolute(String path) |
exists, isPersistent, remove, remove
addCloseListener, close, doneWithDirectory, get, getLivePaths, incRef, init, normalize, release, remove, remove, removeDirectory, stripTrailingSlash
empty, getDataHome, isSharedStorage, move, searchersReserveCommitPoints, sizeOf, sizeOfDirectory
public static final String SOLR_TESTS_ALLOW_READING_FILES_STILL_OPEN_FOR_WRITE
protected org.apache.lucene.store.Directory create(String path, DirectoryFactory.DirContext dirContext) throws IOException
DirectoryFactory
create
in class CachingDirectoryFactory
IOException
- If there is a low-level I/O error.public boolean isAbsolute(String path)
isAbsolute
in class EphemeralDirectoryFactory
path
- the path to checkCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.