Package | Description |
---|---|
org.apache.lucene.store |
Binary i/o API, used for all index data.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
FSLockFactory
Base class for file system based locking implementation.
|
class |
NativeFSLockFactory
Implements
LockFactory using native OS file
locks. |
class |
NoLockFactory
Use this
LockFactory to disable locking entirely. |
class |
SimpleFSLockFactory
Implements
LockFactory using Files.createFile(java.nio.file.Path, java.nio.file.attribute.FileAttribute<?>...) . |
class |
SingleInstanceLockFactory
Implements
LockFactory for a single in-process instance,
meaning all locking will take place through this one instance. |
class |
VerifyingLockFactory
A
LockFactory that wraps another LockFactory and verifies that each lock obtain/release
is "correct" (never results in two processes holding the
lock at the same time). |
Modifier and Type | Field and Description |
---|---|
(package private) LockFactory |
VerifyingLockFactory.lf |
protected LockFactory |
BaseDirectory.lockFactory
Holds the LockFactory instance (implements locking for
this Directory instance).
|
Modifier and Type | Method and Description |
---|---|
static FSDirectory |
FSDirectory.open(java.nio.file.Path path,
LockFactory lockFactory)
Just like
FSDirectory.open(Path) , but allows you to
also specify a custom LockFactory . |
Constructor and Description |
---|
BaseDirectory(LockFactory lockFactory)
Sole constructor.
|
ByteBuffersDirectory(LockFactory lockFactory) |
ByteBuffersDirectory(LockFactory factory,
java.util.function.Supplier<ByteBuffersDataOutput> bbOutputSupplier,
java.util.function.BiFunction<java.lang.String,ByteBuffersDataOutput,IndexInput> outputToInput) |
FSDirectory(java.nio.file.Path path,
LockFactory lockFactory)
Create a new FSDirectory for the named location (ctor for subclasses).
|
MMapDirectory(java.nio.file.Path path,
LockFactory lockFactory)
Create a new MMapDirectory for the named location.
|
MMapDirectory(java.nio.file.Path path,
LockFactory lockFactory,
int maxChunkSize)
Create a new MMapDirectory for the named location, specifying the
maximum chunk size used for memory mapping.
|
NativeUnixDirectory(java.nio.file.Path path,
int mergeBufferSize,
long minBytesDirect,
LockFactory lockFactory,
Directory delegate)
Create a new NIOFSDirectory for the named location.
|
NativeUnixDirectory(java.nio.file.Path path,
LockFactory lockFactory,
Directory delegate)
Create a new NIOFSDirectory for the named location.
|
NIOFSDirectory(java.nio.file.Path path,
LockFactory lockFactory)
Create a new NIOFSDirectory for the named location.
|
RAFDirectory(java.nio.file.Path path,
LockFactory lockFactory)
Create a new RAFDirectory for the named location.
|
RAMDirectory(LockFactory lockFactory)
Deprecated.
Constructs an empty
Directory with the given LockFactory . |
SimpleFSDirectory(java.nio.file.Path path,
LockFactory lockFactory)
Create a new SimpleFSDirectory for the named location.
|
VerifyingLockFactory(LockFactory lf,
java.io.InputStream in,
java.io.OutputStream out) |
WindowsDirectory(java.nio.file.Path path,
LockFactory lockFactory)
Create a new WindowsDirectory for the named location.
|
Modifier and Type | Method and Description |
---|---|
static FSDirectory |
CommandLineUtil.newFSDirectory(java.lang.Class<? extends FSDirectory> clazz,
java.nio.file.Path path,
LockFactory lf)
Creates a new specific FSDirectory instance
|
static FSDirectory |
CommandLineUtil.newFSDirectory(java.lang.String clazzName,
java.nio.file.Path path,
LockFactory lf)
Creates a specific FSDirectory instance starting from its class name
|