Lucene.Net

Directory Class

A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.

Java's i/o APIs not used directly, but rather all i/o is through this API. This permits things such as: implementation of RAM-based indices; implementation indices stored in a database, via JDBC; implementation of an index as a single file; Directory locking is implemented by an instance of LockFactory , and can be changed for each Directory instance using SetLockFactory.

For a list of all members of this type, see Directory Members .

System.Object
   Directory
      CompoundFileReader
      FileSwitchDirectory
      FSDirectory
      RAMDirectory

[Serializable]
public abstract class Directory : IDisposable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: Lucene.Net.Store

Assembly: Lucene.Net (in Lucene.Net.dll)

See Also

Directory Members | Lucene.Net.Store Namespace