The CompoundFileReader type exposes the following members.

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
Not implemented
(Overrides Directory..::..CreateOutput(String).)
Public methodDeleteFile
Not implemented
(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
Returns true iff a file with the given name exists.
(Overrides Directory..::..FileExists(String).)
Public methodFileLength
Returns the length of a file in the directory.
(Overrides Directory..::..FileLength(String).)
Public methodFileModified
Returns the time the compound file was last modified.
(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 methodGetDirectory
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 methodGetName
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodList Obsolete.
Returns an array of strings, one for each file in the directory.
(Overrides Directory..::..List()()()().)
Public methodListAll
Returns an array of strings, one for each file in the directory. Unlike {@link #list} this method does no filtering of the contents in a directory, and it will never return null (throws IOException instead). Currently this method simply fallsback to {@link #list} for Directory impls outside of Lucene's core & contrib, but in 3.0 that method will be removed and this method will become abstract.
(Inherited from Directory.)
Public methodMakeLock
Not implemented
(Overrides Directory..::..MakeLock(String).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpenInput(String) (Overrides Directory..::..OpenInput(String).)
Public methodOpenInput(String, Int32) (Overrides Directory..::..OpenInput(String, Int32).)
Public methodRenameFile Obsolete.
Not implemented
(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
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.
(Inherited from Directory.)
Public methodToString (Inherited from Directory.)
Public methodTouchFile
Set the modified time of the compound file to now.
(Overrides Directory..::..TouchFile(String).)

See Also