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 |
MMapDirectory
File-based
Directory implementation that uses
mmap for reading, and FSDirectory.FSIndexOutput for writing. |
class |
NIOFSDirectory
An
FSDirectory implementation that uses java.nio's FileChannel's
positional read, which allows multiple threads to read from the same file
without synchronizing. |
class |
SimpleFSDirectory
A straightforward implementation of
FSDirectory
using java.io.RandomAccessFile. |
Modifier and Type | Method and Description |
---|---|
static FSDirectory |
FSDirectory.open(File path)
Creates an FSDirectory instance, trying to pick the
best implementation given the current environment.
|
static FSDirectory |
FSDirectory.open(File path,
LockFactory lockFactory)
Just like
open(File) , but allows you to
also specify a custom LockFactory . |
Constructor and Description |
---|
FSDirectory.FSIndexOutput(FSDirectory parent,
String name) |
Modifier and Type | Method and Description |
---|---|
static FSDirectory |
CommandLineUtil.newFSDirectory(Class<? extends FSDirectory> clazz,
File file)
Creates a new specific FSDirectory instance
|
static FSDirectory |
CommandLineUtil.newFSDirectory(String clazzName,
File file)
Creates a specific FSDirectory instance starting from its class name
|
Modifier and Type | Method and Description |
---|---|
static Class<? extends FSDirectory> |
CommandLineUtil.loadFSDirectoryClass(String clazzName)
Loads a specific FSDirectory implementation
|
Modifier and Type | Method and Description |
---|---|
static FSDirectory |
CommandLineUtil.newFSDirectory(Class<? extends FSDirectory> clazz,
File file)
Creates a new specific FSDirectory instance
|