Uses of Class
org.apache.lucene.store.Lock
Packages that use Lock
Package
Description
Codecs API: API for customization of the encoding and structure of the index.
Code to maintain and access indices.
Binary i/o API, used for all index data.
-
Uses of Lock in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs that return Lock -
Uses of Lock in org.apache.lucene.index
Fields in org.apache.lucene.index declared as LockModifier and TypeFieldDescriptionprivate Lock
CheckIndex.writeLock
private Lock
IndexWriter.writeLock
Methods in org.apache.lucene.index that return types with arguments of type LockModifier and TypeMethodDescriptionIndexWriter.acquireWriteLocks
(Directory... dirs) Acquires write locks on all the directories; be sure to match with a call toIOUtils.close(java.io.Closeable...)
in a finally clause.Constructors in org.apache.lucene.index with parameters of type LockModifierConstructorDescriptionCheckIndex
(Directory dir, Lock writeLock) Expert: create a directory with the specified lock. -
Uses of Lock in org.apache.lucene.store
Subclasses of Lock in org.apache.lucene.storeModifier and TypeClassDescription(package private) static final class
private static class
(package private) static final class
private class
private class
Fields in org.apache.lucene.store declared as LockModifier and TypeFieldDescriptionprivate final Lock
VerifyingLockFactory.CheckedLock.lock
private final Lock
LockValidatingDirectoryWrapper.writeLock
Methods in org.apache.lucene.store that return LockModifier and TypeMethodDescriptionprotected abstract Lock
FSLockFactory.obtainFSLock
(FSDirectory dir, String lockName) Implement this method to obtain a lock for a FSDirectory instance.protected Lock
NativeFSLockFactory.obtainFSLock
(FSDirectory dir, String lockName) protected Lock
SimpleFSLockFactory.obtainFSLock
(FSDirectory dir, String lockName) final Lock
BaseDirectory.obtainLock
(String name) abstract Lock
Directory.obtainLock
(String name) Acquires and returns aLock
for a file with the given name.FileSwitchDirectory.obtainLock
(String name) FilterDirectory.obtainLock
(String name) final Lock
FSLockFactory.obtainLock
(Directory dir, String lockName) abstract Lock
LockFactory.obtainLock
(Directory dir, String lockName) Return a new obtained Lock instance identified by lockName.NoLockFactory.obtainLock
(Directory dir, String lockName) SingleInstanceLockFactory.obtainLock
(Directory dir, String lockName) SleepingLockWrapper.obtainLock
(String lockName) VerifyingLockFactory.obtainLock
(Directory dir, String lockName) Constructors in org.apache.lucene.store with parameters of type LockModifierConstructorDescriptionCheckedLock
(Lock lock) LockValidatingDirectoryWrapper
(Directory in, Lock writeLock)