The NIOFSDirectory type exposes the following members.
Methods
Name | Description | |
---|---|---|
ClearLock | Attempt to clear (forcefully unlock and remove) the
specified lock. Only call this at a time when you are
certain this lock is no longer in use.
(Inherited from Directory.) | |
Close | Closes the store to future operations. (Inherited from FSDirectory.) | |
CreateOutput | Creates an IndexOutput for the file with the given name.
In 3.0 this method will become abstract. (Inherited from FSDirectory.) | |
DeleteFile | Removes an existing file in the directory. (Inherited from FSDirectory.) | |
Dispose |
.NET
(Inherited from FSDirectory.) | |
EnsureOpen | (Inherited from Directory.) | |
Equals | (Inherited from Object.) | |
FileExists | Returns true iff a file with the given name exists. (Inherited from FSDirectory.) | |
FileLength | Returns the length in bytes of a file in the directory. (Inherited from FSDirectory.) | |
FileModified(String) | Returns the time the named file was last modified. (Inherited from FSDirectory.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetDirectory()()()() | (Inherited from FSDirectory.) | |
GetFile | Obsolete. (Inherited from FSDirectory.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetLockFactory | Get the LockFactory that this Directory instance is
using for its locking implementation. Note that this
may be null for Directory implementations that provide
their own locking implementation.
(Inherited from Directory.) | |
GetLockID | (Inherited from FSDirectory.) | |
GetReadChunkSize | The maximum number of bytes to read at once from the
underlying file during {@link IndexInput#readBytes}.
(Inherited from FSDirectory.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitOutput | Initializes the directory to create a new file with the given name.
This method should be used in {@link #createOutput}.
(Inherited from FSDirectory.) | |
List | Obsolete. (Inherited from FSDirectory.) | |
ListAll()()()() | Lists all files (not subdirectories) in the
directory.
(Inherited from FSDirectory.) | |
MakeLock | Construct a {@link Lock}. (Inherited from Directory.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OpenInput(String) | (Inherited from FSDirectory.) | |
OpenInput(String, Int32) | Creates an IndexInput for the file with the given name.
In 3.0 this method will become abstract. (Inherited from FSDirectory.) | |
RenameFile | Obsolete. Renames an existing file in the directory.
Warning: This is not atomic.
(Inherited from FSDirectory.) | |
SetLockFactory | Set the LockFactory that this Directory instance should
use for its locking implementation. Each * instance of
LockFactory should only be used for one directory (ie,
do not share a single instance across multiple
Directories).
(Inherited from Directory.) | |
SetReadChunkSize | Sets the maximum number of bytes read at once from the
underlying file during {@link IndexInput#readBytes}.
The default value is {@link #DEFAULT_READ_CHUNK_SIZE};
This was introduced due to Sun
JVM Bug 6478546, which throws an incorrect
OutOfMemoryError when attempting to read too many bytes
at once. It only happens on 32bit JVMs with a large
maximum heap size.Changes to this value will not impact any
already-opened {@link IndexInput}s. You should call
this before attempting to open an index on the
directory.NOTE: This value should be as large as
possible to reduce any possible performance impact. If
you still encounter an incorrect OutOfMemoryError,
trying lowering the chunk size. (Inherited from FSDirectory.) | |
Sync | (Inherited from FSDirectory.) | |
ToString | For debug output. (Inherited from FSDirectory.) | |
TouchFile | Set the modified time of an existing file to now. (Inherited from FSDirectory.) |