public class MockDirectoryFactory extends EphemeralDirectoryFactory
LuceneTestCase.newDirectory()CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListenerDirectoryFactory.DirContext| Modifier and Type | Field and Description |
|---|---|
static String |
SOLR_TESTS_ALLOW_READING_FILES_STILL_OPEN_FOR_WRITE |
byDirectoryCache, byPathCache, closeListeners, removeEntriesINDEX_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, removeaddCloseListener, close, deleteOldIndexDirectory, doneWithDirectory, get, getLivePaths, incRef, init, normalize, release, remove, remove, removeDirectory, stripTrailingSlashcleanupOldIndexDirectories, empty, getDataHome, isSharedStorage, move, offerMBeans, searchersReserveCommitPoints, sizeOf, sizeOfDirectorypublic static final String SOLR_TESTS_ALLOW_READING_FILES_STILL_OPEN_FOR_WRITE
protected org.apache.lucene.store.LockFactory createLockFactory(String rawLockType) throws IOException
DirectoryFactorycreateLockFactory in class DirectoryFactoryrawLockType - 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
DirectoryFactorycreate in class DirectoryFactoryIOException - If there is a low-level I/O error.public boolean isAbsolute(String path)
isAbsolute in class EphemeralDirectoryFactorypath - the path to checkCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.