Uses of Class
org.apache.lucene.store.LockFactory
Package
Description
Binary i/o API, used for all index data.
Some utility classes.
-
Uses of LockFactory in org.apache.lucene.store
Modifier and TypeClassDescriptionclass
Base class for file system based locking implementation.final class
ImplementsLockFactory
using native OS file locks.final class
Use thisLockFactory
to disable locking entirely.final class
final class
ImplementsLockFactory
for a single in-process instance, meaning all locking will take place through this one instance.final 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).Modifier and TypeFieldDescriptionprotected final LockFactory
BaseDirectory.lockFactory
Holds the LockFactory instance (implements locking for this Directory instance).Modifier and TypeMethodDescriptionstatic FSDirectory
FSDirectory.open
(Path path, LockFactory lockFactory) Just likeFSDirectory.open(Path)
, but allows you to also specify a customLockFactory
.ModifierConstructorDescriptionprotected
BaseDirectory
(LockFactory lockFactory) Sole constructor.ByteBuffersDirectory
(LockFactory lockFactory) ByteBuffersDirectory
(LockFactory factory, Supplier<ByteBuffersDataOutput> bbOutputSupplier, BiFunction<String, ByteBuffersDataOutput, IndexInput> outputToInput) protected
FSDirectory
(Path path, LockFactory lockFactory) Create a new FSDirectory for the named location (ctor for subclasses).MMapDirectory
(Path path, LockFactory lockFactory) Create a new MMapDirectory for the named location.MMapDirectory
(Path path, LockFactory lockFactory, int maxChunkSize) Deprecated.MMapDirectory
(Path path, LockFactory lockFactory, long maxChunkSize) Create a new MMapDirectory for the named location, specifying the maximum chunk size used for memory mapping.NIOFSDirectory
(Path path, LockFactory lockFactory) Create a new NIOFSDirectory for the named location.VerifyingLockFactory
(LockFactory lf, InputStream in, OutputStream out) -
Uses of LockFactory in org.apache.lucene.util
Modifier and TypeMethodDescriptionstatic FSDirectory
CommandLineUtil.newFSDirectory
(Class<? extends FSDirectory> clazz, Path path, LockFactory lf) Creates a new specific FSDirectory instancestatic FSDirectory
CommandLineUtil.newFSDirectory
(String clazzName, Path path, LockFactory lf) Creates a specific FSDirectory instance starting from its class name
MMapDirectory(Path, LockFactory, long)
instead.