Package org.apache.solr.core
Class NRTCachingDirectoryFactory
java.lang.Object
org.apache.solr.core.DirectoryFactory
org.apache.solr.core.CachingDirectoryFactory
org.apache.solr.core.StandardDirectoryFactory
org.apache.solr.core.NRTCachingDirectoryFactory
- All Implemented Interfaces:
Closeable,AutoCloseable,NamedListInitializedPlugin
Factory to instantiate
NRTCachingDirectory-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.core.CachingDirectoryFactory
CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListener, CachingDirectoryFactory.ReleasableDirectoryNested classes/interfaces inherited from class org.apache.solr.core.DirectoryFactory
DirectoryFactory.DirContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class org.apache.solr.core.CachingDirectoryFactory
byDirectoryCache, byPathCache, closeListeners, removeEntriesFields inherited from class org.apache.solr.core.DirectoryFactory
coreContainer, dataHomePath, INDEX_W_TIMESTAMP_REGEX, IOCONTEXT_NO_CACHE, LOCK_TYPE_NATIVE, LOCK_TYPE_NONE, LOCK_TYPE_SIMPLE, LOCK_TYPE_SINGLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.store.DirectoryCreates a new Directory for a given path.voidinit(org.apache.solr.common.util.NamedList<?> args) initwill be called just once, immediately after creation.Methods inherited from class org.apache.solr.core.StandardDirectoryFactory
createLockFactory, isPersistent, move, normalize, removeDirectory, renameWithOverwriteMethods inherited from class org.apache.solr.core.CachingDirectoryFactory
addCloseListener, close, deleteOldIndexDirectory, doneWithDirectory, exists, filterDirectory, get, getLivePaths, getPath, incRef, release, remove, remove, remove, remove, stripTrailingSlashMethods inherited from class org.apache.solr.core.DirectoryFactory
cleanupOldIndexDirectories, empty, getBaseDir, getDataHome, initCoreContainer, isAbsolute, isSharedStorage, newDefaultUpdateLog, searchersReserveCommitPoints, size, size, sizeOf, sizeOfDirectory
-
Field Details
-
DEFAULT_MAX_MERGE_SIZE_MB
public static final int DEFAULT_MAX_MERGE_SIZE_MB- See Also:
-
DEFAULT_MAX_CACHED_MB
public static final int DEFAULT_MAX_CACHED_MB- See Also:
-
-
Constructor Details
-
NRTCachingDirectoryFactory
public NRTCachingDirectoryFactory()
-
-
Method Details
-
init
public void init(org.apache.solr.common.util.NamedList<?> args) Description copied from interface:NamedListInitializedPlugininitwill be called just once, immediately after creation.Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself
- Specified by:
initin interfaceNamedListInitializedPlugin- Overrides:
initin classCachingDirectoryFactory- Parameters:
args- non-null list of initialization parameters (may be empty)
-
create
protected org.apache.lucene.store.Directory create(String path, org.apache.lucene.store.LockFactory lockFactory) throws IOException Description copied from class:DirectoryFactoryCreates a new Directory for a given path.- Overrides:
createin classStandardDirectoryFactory- Throws:
IOException- If there is a low-level I/O error.
-