public class MMapDirectoryFactory extends StandardDirectoryFactory
FSDirectory.open(java.nio.file.Path).
Can set the following parameters:
MMapDirectory.setUseUnmap(boolean)MMapDirectory.MMapDirectory(Path, LockFactory, int)CachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListenerDirectoryFactory.DirContextbyDirectoryCache, byPathCache, closeListeners, removeEntriescoreContainer, INDEX_W_TIMESTAMP_REGEX, IOCONTEXT_NO_CACHE, LOCK_TYPE_HDFS, LOCK_TYPE_NATIVE, LOCK_TYPE_NONE, LOCK_TYPE_SIMPLE, LOCK_TYPE_SINGLE| Constructor and Description |
|---|
MMapDirectoryFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Directory |
create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext)
Creates a new Directory for a given path.
|
void |
init(NamedList args) |
boolean |
isAbsolute(String path) |
createLockFactory, exists, isPersistent, move, normalize, removeDirectoryaddCloseListener, close, deleteOldIndexDirectory, doneWithDirectory, get, getLivePaths, getPath, incRef, release, remove, remove, remove, remove, stripTrailingSlashcleanupOldIndexDirectories, empty, getDataHome, initCoreContainer, isSharedStorage, offerMBeans, searchersReserveCommitPoints, size, size, sizeOf, sizeOfDirectorypublic void init(NamedList args)
init in interface NamedListInitializedPlugininit in class CachingDirectoryFactoryprotected Directory create(String path, LockFactory lockFactory, DirectoryFactory.DirContext dirContext) throws IOException
DirectoryFactorycreate in class StandardDirectoryFactoryIOException - If there is a low-level I/O error.public boolean isAbsolute(String path)
isAbsolute in class StandardDirectoryFactorypath - the path to checkCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.