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
INDEX_W_TIMESTAMP_REGEX, IOCONTEXT_NO_CACHE
Constructor and Description |
---|
MockDirectoryFactory() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.store.Directory |
create(String path,
org.apache.lucene.store.LockFactory lockFactory,
DirectoryFactory.DirContext dirContext)
Creates a new Directory for a given path.
|
protected org.apache.lucene.store.LockFactory |
createLockFactory(String rawLockType)
Creates a new LockFactory for a given path.
|
boolean |
isAbsolute(String path) |
exists, isPersistent, remove, remove
addCloseListener, close, deleteOldIndexDirectory, doneWithDirectory, get, getLivePaths, incRef, init, normalize, release, remove, remove, removeDirectory, stripTrailingSlash
cleanupOldIndexDirectories, empty, getDataHome, isSharedStorage, move, offerMBeans, searchersReserveCommitPoints, sizeOf, sizeOfDirectory
public static final String SOLR_TESTS_ALLOW_READING_FILES_STILL_OPEN_FOR_WRITE
protected org.apache.lucene.store.LockFactory createLockFactory(String rawLockType) throws IOException
DirectoryFactory
createLockFactory
in class DirectoryFactory
rawLockType
- A string value as passed in config. Every factory should at least support 'none' to disable locking.IOException
- If there is a low-level I/O error.protected org.apache.lucene.store.Directory create(String path, org.apache.lucene.store.LockFactory lockFactory, DirectoryFactory.DirContext dirContext) throws IOException
DirectoryFactory
create
in class DirectoryFactory
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.