Uses of Class
org.apache.lucene.store.LockFactory
Packages that use LockFactory
-
Uses of LockFactory in org.apache.lucene.store
Subclasses of LockFactory in org.apache.lucene.storeModifier and TypeClassDescriptionclass
Base class for file system based locking implementation.class
ImplementsLockFactory
using native OS file locks.class
Use thisLockFactory
to disable locking entirely.class
ImplementsLockFactory
usingFile.createNewFile()
.class
ImplementsLockFactory
for a single in-process instance, meaning all locking will take place through this one instance.class
ALockFactory
that wraps anotherLockFactory
and 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 LockFactory
BaseDirectory.lockFactory
Holds the LockFactory instance (implements locking for this Directory instance).Methods in org.apache.lucene.store that return LockFactoryModifier and TypeMethodDescriptionBaseDirectory.getLockFactory()
abstract LockFactory
Directory.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 FSDirectory
FSDirectory.open
(File path, LockFactory lockFactory) Just likeFSDirectory.open(File)
, but allows you to also specify a customLockFactory
.void
BaseDirectory.setLockFactory
(LockFactory lockFactory) abstract void
Directory.setLockFactory
(LockFactory lockFactory) Set the LockFactory that this Directory instance should use for its locking implementation.void
FilterDirectory.setLockFactory
(LockFactory lockFactory) void
FSDirectory.setLockFactory
(LockFactory lockFactory) void
NRTCachingDirectory.setLockFactory
(LockFactory lf) Constructors in org.apache.lucene.store with parameters of type LockFactoryModifierConstructorDescriptionprotected
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)