Uses of Class
org.apache.lucene.store.LockFactory
-
Packages that use LockFactory Package Description org.apache.lucene.store Binary i/o API, used for all index data. -
-
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.classSimpleFSLockFactoryImplementsLockFactoryusingFile.createNewFile().classSingleInstanceLockFactoryImplementsLockFactoryfor a single in-process instance, meaning all locking will take place through this one instance.classVerifyingLockFactoryALockFactorythat wraps anotherLockFactoryand verifies that each lock obtain/release is "correct" (never results in two processes holding the lock at the same time).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 that return LockFactory Modifier and Type Method Description LockFactoryBaseDirectory. getLockFactory()abstract LockFactoryDirectory. getLockFactory()Get the LockFactory that this Directory instance is using for its locking implementation.LockFactoryFilterDirectory. getLockFactory()LockFactoryNRTCachingDirectory. getLockFactory()Methods in org.apache.lucene.store with parameters of type LockFactory Modifier and Type Method Description static FSDirectoryFSDirectory. open(File path, LockFactory lockFactory)Just likeFSDirectory.open(File), but allows you to also specify a customLockFactory.voidBaseDirectory. setLockFactory(LockFactory lockFactory)abstract voidDirectory. setLockFactory(LockFactory lockFactory)Set the LockFactory that this Directory instance should use for its locking implementation.voidFilterDirectory. setLockFactory(LockFactory lockFactory)voidFSDirectory. setLockFactory(LockFactory lockFactory)voidNRTCachingDirectory. setLockFactory(LockFactory lf)Constructors in org.apache.lucene.store with parameters of type LockFactory Constructor Description FSDirectory(File path, LockFactory lockFactory)Create a new FSDirectory for the named location (ctor for subclasses).MMapDirectory(File path, LockFactory lockFactory)Create a new MMapDirectory for the named location.MMapDirectory(File path, LockFactory lockFactory, int maxChunkSize)Create a new MMapDirectory for the named location, specifying the maximum chunk size used for memory mapping.NIOFSDirectory(File path, LockFactory lockFactory)Create a new NIOFSDirectory for the named location.SimpleFSDirectory(File path, LockFactory lockFactory)Create a new SimpleFSDirectory for the named location.VerifyingLockFactory(byte id, LockFactory lf, String host, int port)
-