public class MockFSDirectoryFactory extends StandardDirectoryFactory
LuceneTestCase.newFSDirectory(Path)
CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListener
DirectoryFactory.DirContext
byDirectoryCache, byPathCache, closeListeners, removeEntries
INDEX_W_TIMESTAMP_REGEX, IOCONTEXT_NO_CACHE
Constructor and Description |
---|
MockFSDirectoryFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isAbsolute(String path) |
createLockFactory, exists, isPersistent, move, normalize, removeDirectory
addCloseListener, close, deleteOldIndexDirectory, doneWithDirectory, get, getLivePaths, incRef, init, release, remove, remove, remove, remove, stripTrailingSlash
cleanupOldIndexDirectories, empty, getDataHome, isSharedStorage, offerMBeans, searchersReserveCommitPoints, sizeOf, sizeOfDirectory
public org.apache.lucene.store.Directory create(String path, org.apache.lucene.store.LockFactory lockFactory, DirectoryFactory.DirContext dirContext) throws IOException
DirectoryFactory
create
in class StandardDirectoryFactory
IOException
- If there is a low-level I/O error.public boolean isAbsolute(String path)
isAbsolute
in class StandardDirectoryFactory
path
- the path to checkCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.