The FileSwitchDirectory type exposes the following members.

Constructors

  NameDescription
Public methodFileSwitchDirectory
Initializes a new instance of the FileSwitchDirectory class

Methods

  NameDescription
Public methodClearLock
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.)
Public methodClose (Overrides Directory..::..Close()()()().)
Public methodCreateOutput (Overrides Directory..::..CreateOutput(String).)
Public methodDeleteFile (Overrides Directory..::..DeleteFile(String).)
Public methodDispose
.NET
(Overrides Directory..::..Dispose()()()().)
Public methodEnsureOpen (Inherited from Directory.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFileExists (Overrides Directory..::..FileExists(String).)
Public methodFileLength (Overrides Directory..::..FileLength(String).)
Public methodFileModified (Overrides Directory..::..FileModified(String).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetExtension
Utility method to return a file's extension.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLockFactory
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.)
Public methodGetLockID
Return a string identifier that uniquely differentiates this Directory instance from other Directory instances. This ID should be the same if two Directory instances (even in different JVMs and/or on different machines) are considered "the same index". This is how locking "scopes" to the right index.
(Inherited from Directory.)
Public methodGetPrimaryDir
Return the primary directory
Public methodGetSecondaryDir
Return the secondary directory
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodList Obsolete. (Overrides Directory..::..List()()()().)
Public methodListAll (Overrides Directory..::..ListAll()()()().)
Public methodMakeLock
Construct a {@link Lock}.
(Inherited from Directory.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpenInput(String) (Overrides Directory..::..OpenInput(String).)
Public methodOpenInput(String, Int32)
Returns a stream reading an existing file, with the specified read buffer size. The particular Directory implementation may ignore the buffer size. Currently the only Directory implementations that respect this parameter are {@link FSDirectory} and {@link Lucene.Net.Index.CompoundFileReader}.
(Inherited from Directory.)
Public methodRenameFile Obsolete. (Overrides Directory..::..RenameFile(String, String).)
Public methodSetLockFactory
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.)
Public methodSync (Overrides Directory..::..Sync(String).)
Public methodToString (Inherited from Directory.)
Public methodTouchFile (Overrides Directory..::..TouchFile(String).)

Fields

  NameDescription
Protected fieldisOpen (Inherited from Directory.)
Protected fieldlockFactory
Holds the LockFactory instance (implements locking for this Directory instance).
(Inherited from Directory.)

Properties

  NameDescription
Public propertyisOpen_ForNUnit (Inherited from Directory.)

See Also