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 Files.newByteChannel(Path, java.nio.file.OpenOption...) . |
Modifier and Type | Method and Description |
---|---|
static FSDirectory |
FSDirectory.open(Path path)
Creates an FSDirectory instance, trying to pick the
best implementation given the current environment.
|
static FSDirectory |
FSDirectory.open(Path path,
LockFactory lockFactory)
Just like
open(Path) , but allows you to
also specify a custom LockFactory . |
Modifier and Type | Method and Description |
---|---|
protected Lock |
NativeFSLockFactory.obtainFSLock(FSDirectory dir,
String lockName) |
protected Lock |
SimpleFSLockFactory.obtainFSLock(FSDirectory dir,
String lockName) |
protected abstract Lock |
FSLockFactory.obtainFSLock(FSDirectory dir,
String lockName)
Implement this method to obtain a lock for a FSDirectory instance.
|
Constructor and Description |
---|
RAMDirectory(FSDirectory dir,
IOContext context)
Creates a new
RAMDirectory instance from a different
Directory implementation. |
Modifier and Type | Method and Description |
---|---|
static FSDirectory |
CommandLineUtil.newFSDirectory(Class<? extends FSDirectory> clazz,
Path path)
Creates a new specific FSDirectory instance
|
static FSDirectory |
CommandLineUtil.newFSDirectory(Class<? extends FSDirectory> clazz,
Path path,
LockFactory lf)
Creates a new specific FSDirectory instance
|
static FSDirectory |
CommandLineUtil.newFSDirectory(String clazzName,
Path path)
Creates a specific FSDirectory instance starting from its class name, using the default lock factory
|
static FSDirectory |
CommandLineUtil.newFSDirectory(String clazzName,
Path path,
LockFactory lf)
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,
Path path)
Creates a new specific FSDirectory instance
|
static FSDirectory |
CommandLineUtil.newFSDirectory(Class<? extends FSDirectory> clazz,
Path path,
LockFactory lf)
Creates a new specific FSDirectory instance
|
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.