java.lang.Object | |||
↳ | org.apache.lucene.store.Directory | ||
↳ | org.apache.lucene.store.FSDirectory | ||
↳ | org.apache.lucene.store.SimpleFSDirectory |
A straightforward implementation of FSDirectory
using java.io.RandomAccessFile. However, this class has
poor concurrent performance (multiple threads will
bottleneck) as it synchronizes when multiple threads
read from the same file. It's usually better to use
NIOFSDirectory
or MMapDirectory
instead.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SimpleFSDirectory.SimpleFSIndexInput | |||||||||||
SimpleFSDirectory.SimpleFSIndexOutput |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.store.FSDirectory
| |||||||||||
From class
org.apache.lucene.store.Directory
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new SimpleFSDirectory for the named location.
| |||||||||||
Create a new SimpleFSDirectory for the named location and
NativeFSLockFactory . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an IndexOutput for the file with the given name.
| |||||||||||
Creates an IndexInput for the file with the given name.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.store.FSDirectory
| |||||||||||
From class
org.apache.lucene.store.Directory
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
|
Create a new SimpleFSDirectory for the named location.
path | the path of the directory |
---|---|
lockFactory | the lock factory to use, or null for the default
(NativeFSLockFactory ); |
IOException |
---|
Create a new SimpleFSDirectory for the named location and NativeFSLockFactory
.
path | the path of the directory |
---|
IOException |
---|
Creates an IndexOutput for the file with the given name.
IOException |
---|
Creates an IndexInput for the file with the given name.
IOException |
---|