java.lang.Object | ||
↳ | org.apache.lucene.store.Directory | |
↳ | org.apache.lucene.store.FileSwitchDirectory |
Expert: A Directory instance that switches files between two other Directory instances.
Files with the specified extensions are placed in the primary directory; others are placed in the secondary directory. The provided Set must not change once passed to this class, and must allow multiple threads to call contains at once.
NOTE: this API is new and experimental and is subject to suddenly change in the next release.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.store.Directory
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes the store.
| |||||||||||
Creates a new, empty file in the directory with the given name.
| |||||||||||
Removes an existing file in the directory.
| |||||||||||
Returns true iff a file with the given name exists.
| |||||||||||
Returns the length of a file in the directory.
| |||||||||||
Returns the time the named file was last modified.
| |||||||||||
Utility method to return a file's extension.
| |||||||||||
Return the primary directory
| |||||||||||
Return the secondary directory
| |||||||||||
Returns an array of strings, one for each file in the
directory.
| |||||||||||
Returns a stream reading an existing file.
| |||||||||||
Ensure that any writes to this file are moved to
stable storage.
| |||||||||||
Set the modified time of an existing file to now.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.store.Directory
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
|
Creates a new, empty file in the directory with the given name. Returns a stream writing this file.
IOException |
---|
Returns true iff a file with the given name exists.
IOException |
---|
Returns the length of a file in the directory.
IOException |
---|
Returns the time the named file was last modified.
IOException |
---|
Returns an array of strings, one for each file in the directory.
IOException |
---|
Returns a stream reading an existing file.
IOException |
---|
Ensure that any writes to this file are moved to stable storage. Lucene uses this to properly commit changes to the index, to prevent a machine/OS crash from corrupting the index.
IOException |
---|
Set the modified time of an existing file to now.
IOException |
---|