Package org.apache.solr.core
Class RAMDirectoryFactory
- java.lang.Object
- 
- org.apache.solr.core.DirectoryFactory
- 
- org.apache.solr.core.CachingDirectoryFactory
- 
- org.apache.solr.core.EphemeralDirectoryFactory
- 
- org.apache.solr.core.RAMDirectoryFactory
 
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- NamedListInitializedPlugin
 
 public class RAMDirectoryFactory extends EphemeralDirectoryFactory Factory to instantiate RAM-resident directory implementation.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.solr.core.CachingDirectoryFactoryCachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListener
 - 
Nested classes/interfaces inherited from class org.apache.solr.core.DirectoryFactoryDirectoryFactory.DirContext
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.solr.core.CachingDirectoryFactorybyDirectoryCache, byPathCache, closeListeners, removeEntries
 - 
Fields inherited from class org.apache.solr.core.DirectoryFactorycoreContainer, dataHomePath, INDEX_W_TIMESTAMP_REGEX, IOCONTEXT_NO_CACHE, LOCK_TYPE_NATIVE, LOCK_TYPE_NONE, LOCK_TYPE_SIMPLE, LOCK_TYPE_SINGLE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RAMDirectoryFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.lucene.store.Directorycreate(String path, org.apache.lucene.store.LockFactory lockFactory, DirectoryFactory.DirContext dirContext)Creates a new Directory for a given path.protected org.apache.lucene.store.LockFactorycreateLockFactory(String rawLockType)Creates a new LockFactory for a given path.- 
Methods inherited from class org.apache.solr.core.EphemeralDirectoryFactorycleanupOldIndexDirectories, exists, isAbsolute, isPersistent, remove, remove
 - 
Methods inherited from class org.apache.solr.core.CachingDirectoryFactoryaddCloseListener, close, deleteOldIndexDirectory, doneWithDirectory, get, getLivePaths, getPath, incRef, init, normalize, release, remove, remove, removeDirectory, stripTrailingSlash
 - 
Methods inherited from class org.apache.solr.core.DirectoryFactoryempty, getBaseDir, getDataHome, initCoreContainer, isSharedStorage, move, newDefaultUpdateLog, renameWithOverwrite, searchersReserveCommitPoints, size, size, sizeOf, sizeOfDirectory
 
- 
 
- 
- 
- 
Method Detail- 
createLockFactoryprotected org.apache.lucene.store.LockFactory createLockFactory(String rawLockType) throws IOException Description copied from class:DirectoryFactoryCreates a new LockFactory for a given path.- Specified by:
- createLockFactoryin class- DirectoryFactory
- Parameters:
- rawLockType- A string value as passed in config. Every factory should at least support 'none' to disable locking.
- Throws:
- IOException- If there is a low-level I/O error.
 
 - 
createprotected org.apache.lucene.store.Directory create(String path, org.apache.lucene.store.LockFactory lockFactory, DirectoryFactory.DirContext dirContext) throws IOException Description copied from class:DirectoryFactoryCreates a new Directory for a given path.- Specified by:
- createin class- DirectoryFactory
- Throws:
- IOException- If there is a low-level I/O error.
 
 
- 
 
-