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.org.apache.lucene.util Some utility classes. -
-
Uses of LockFactory in org.apache.lucene.store
Subclasses of LockFactory in org.apache.lucene.store Modifier and Type Class Description class
FSLockFactory
Base class for file system based locking implementation.class
MockLockFactoryWrapper
Used by MockDirectoryWrapper to wrap another factory and track open locks.class
NativeFSLockFactory
ImplementsLockFactory
using native OS file locks.class
NoLockFactory
Use thisLockFactory
to disable locking entirely.class
SimpleFSLockFactory
ImplementsLockFactory
usingFile.createNewFile()
.class
SingleInstanceLockFactory
ImplementsLockFactory
for a single in-process instance, meaning all locking will take place through this one instance.class
VerifyingLockFactory
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 LockFactory Modifier and Type Field Description protected LockFactory
Directory. lockFactory
Holds the LockFactory instance (implements locking for this Directory instance).Methods in org.apache.lucene.store that return LockFactory Modifier and Type Method Description LockFactory
Directory. getLockFactory()
Get the LockFactory that this Directory instance is using for its locking implementation.LockFactory
MockDirectoryWrapper. getLockFactory()
LockFactory
NRTCachingDirectory. getLockFactory()
Methods in org.apache.lucene.store with parameters of type LockFactory Modifier and Type Method Description static FSDirectory
FSDirectory. open(File path, LockFactory lockFactory)
Just likeFSDirectory.open(File)
, but allows you to also specify a customLockFactory
.void
Directory. setLockFactory(LockFactory lockFactory)
Set the LockFactory that this Directory instance should use for its locking implementation.void
FSDirectory. setLockFactory(LockFactory lockFactory)
void
MockDirectoryWrapper. setLockFactory(LockFactory lockFactory)
void
NRTCachingDirectory. setLockFactory(LockFactory lf)
Constructors in org.apache.lucene.store with parameters of type LockFactory Constructor Description DirectIOLinuxDirectory(File path, LockFactory lockFactory, int forcedBufferSize)
Create a new NIOFSDirectory for the named location.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.MockLockFactoryWrapper(MockDirectoryWrapper dir, LockFactory delegate)
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)
WindowsDirectory(File path, LockFactory lockFactory)
Create a new WindowsDirectory 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 MockDirectoryWrapper
LuceneTestCase. newFSDirectory(File f, LockFactory lf)
Returns a new FSDirectory instance over the given file, which must be a folder.
-