Apache Lucene.Net 2.4.0 Class Library API

FSDirectory Methods

The methods of the FSDirectory class are listed below. For a complete list of FSDirectory class members, see the FSDirectory Members topic.

Public Static Methods

FileModifiedOverloaded. Returns the time the named file was last modified.
GetDirectoryOverloaded. Returns the directory instance for the named location.
GetDisableLocks Returns whether Lucene's use of lock files is disabled.
SetDisableLocks Set whether Lucene's use of lock files is disabled. By default, lock files are enabled. They should only be disabled if the index is on a read-only medium like a CD-ROM.

Public Instance Methods

ClearLock (inherited from Directory) 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.
CloseCloses the store to future operations.
CreateOutputCreates a new, empty file in the directory with the given name. Returns a stream writing this file.
DeleteFileRemoves an existing file in the directory.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FileExistsReturns true iff a file with the given name exists.
FileLengthReturns the length in bytes of a file in the directory.
FileModifiedOverloaded. Returns the time the named file was last modified.
GetFile 
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetLockFactory (inherited from Directory) 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.
GetLockID 
GetType (inherited from Object)Gets the Type of the current instance.
ListReturns an array of strings, one for each Lucene index file in the directory.
MakeLock (inherited from Directory)Construct a {@link Lock}.
OpenInputOverloaded.  
RenameFileRenames an existing file in the directory. Warning: This is not atomic.
SetLockFactory (inherited from Directory) 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).
Sync 
ToStringFor debug output.
TouchFileSet the modified time of an existing file to now.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

Protected Internal Instance Methods

EnsureOpen (inherited from Directory) Throws AlreadyClosedException if this Directory is closed.

See Also

FSDirectory Class | Lucene.Net.Store Namespace |