public class RAMDirectoryFactory extends EphemeralDirectoryFactory
RAMDirectoryCachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListenerDirectoryFactory.DirContext| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
byDirectoryCache, byPathCache, closeListeners, removeEntriesINDEX_W_TIMESTAMP_REGEX, IOCONTEXT_NO_CACHE| Constructor and Description |
|---|
RAMDirectoryFactory() |
| 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.
|
exists, isAbsolute, isPersistent, remove, removeaddCloseListener, close, deleteOldIndexDirectory, doneWithDirectory, get, getLivePaths, incRef, init, normalize, release, remove, remove, removeDirectory, stripTrailingSlashcleanupOldIndexDirectories, empty, getDataHome, isSharedStorage, move, offerMBeans, searchersReserveCommitPoints, sizeOf, sizeOfDirectoryprotected 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.Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.