Uses of Class
org.apache.lucene.store.LockFactory
Packages that use LockFactory
- 
Uses of LockFactory in org.apache.lucene.storeSubclasses of LockFactory in org.apache.lucene.storeModifier and TypeClassDescriptionclassBase class for file system based locking implementation.classImplementsLockFactoryusing native OS file locks.classUse thisLockFactoryto disable locking entirely.classImplementsLockFactoryusingFile.createNewFile().classImplementsLockFactoryfor a single in-process instance, meaning all locking will take place through this one instance.classALockFactorythat 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 LockFactoryModifier and TypeFieldDescriptionprotected LockFactoryBaseDirectory.lockFactoryHolds the LockFactory instance (implements locking for this Directory instance).Methods in org.apache.lucene.store that return LockFactoryModifier and TypeMethodDescriptionBaseDirectory.getLockFactory()abstract LockFactoryDirectory.getLockFactory()Get the LockFactory that this Directory instance is using for its locking implementation.FilterDirectory.getLockFactory()NRTCachingDirectory.getLockFactory()Methods in org.apache.lucene.store with parameters of type LockFactoryModifier and TypeMethodDescriptionstatic 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 LockFactoryModifierConstructorDescriptionprotectedFSDirectory(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)