Uses of Class
org.apache.lucene.store.LockFactory
-
Packages that use LockFactory Package Description org.apache.lucene.store org.apache.lucene.util org.elasticsearch.index.store -
-
Uses of LockFactory in org.apache.lucene.store
Subclasses of LockFactory in org.apache.lucene.store Modifier and Type Class Description classFSLockFactoryBase class for file system based locking implementation.classNativeFSLockFactoryImplementsLockFactoryusing native OS file locks.classNoLockFactoryUse thisLockFactoryto disable locking entirely.classSimpleFSLockFactoryclassSingleInstanceLockFactoryImplementsLockFactoryfor a single in-process instance, meaning all locking will take place through this one instance.Fields in org.apache.lucene.store declared as LockFactory Modifier and Type Field Description protected LockFactoryBaseDirectory. lockFactoryHolds the LockFactory instance (implements locking for this Directory instance).Methods in org.apache.lucene.store with parameters of type LockFactory Modifier and Type Method Description static FSDirectoryFSDirectory. open(Path path, LockFactory lockFactory)Just likeFSDirectory.open(Path), but allows you to also specify a customLockFactory.Constructors in org.apache.lucene.store with parameters of type LockFactory Constructor Description BaseDirectory(LockFactory lockFactory)Sole constructor.FSDirectory(Path path, LockFactory lockFactory)Create a new FSDirectory for the named location (ctor for subclasses).MMapDirectory(Path path, LockFactory lockFactory)Create a new MMapDirectory for the named location.MMapDirectory(Path path, LockFactory lockFactory, int maxChunkSize)Create a new MMapDirectory for the named location, specifying the maximum chunk size used for memory mapping.NIOFSDirectory(Path path, LockFactory lockFactory)Create a new NIOFSDirectory for the named location.RAMDirectory(LockFactory lockFactory)Deprecated.Constructs an emptyDirectorywith the givenLockFactory.SimpleFSDirectory(Path path, LockFactory lockFactory)Create a new SimpleFSDirectory for the named location. -
Uses of LockFactory in org.apache.lucene.util
Methods in org.apache.lucene.util with parameters of type LockFactory Modifier and Type Method Description static FSDirectoryCommandLineUtil. newFSDirectory(Class<? extends FSDirectory> clazz, Path path, LockFactory lf)Creates a new specific FSDirectory instancestatic FSDirectoryCommandLineUtil. newFSDirectory(String clazzName, Path path, LockFactory lf)Creates a specific FSDirectory instance starting from its class name -
Uses of LockFactory in org.elasticsearch.index.store
Fields in org.elasticsearch.index.store with type parameters of type LockFactory Modifier and Type Field Description static Setting<LockFactory>FsDirectoryFactory. INDEX_LOCK_FACTOR_SETTINGMethods in org.elasticsearch.index.store with parameters of type LockFactory Modifier and Type Method Description protected DirectoryFsDirectoryFactory. newFSDirectory(Path location, LockFactory lockFactory, IndexSettings indexSettings)static MMapDirectoryFsDirectoryFactory. setPreload(MMapDirectory mMapDirectory, LockFactory lockFactory, Set<String> preLoadExtensions)
-