The RAMDirectory type exposes the following members.
Constructors
Name | Description | |
---|---|---|
RAMDirectory()()()() | Constructs an empty {@link Directory}. | |
RAMDirectory(FileInfo) | Obsolete. Creates a new CopyC# RAMDirectory | |
RAMDirectory(String) | Obsolete. Creates a new CopyC# RAMDirectory | |
RAMDirectory(Directory) | Creates a new CopyC# RAMDirectory CopyC# Directory CopyC# RAMDirectory CopyC# Directory CopyC# Directory CopyC# RAMDirectory |
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, releasing associated memory. (Overrides Directory..::..Close()()()().) | |
CreateOutput | Creates a new, empty file in the directory with the given name. Returns a stream writing this file. (Overrides Directory..::..CreateOutput(String).) | |
DeleteFile | Removes an existing file in the directory. (Overrides Directory..::..DeleteFile(String).) | |
Dispose |
.NET
(Overrides Directory..::..Dispose()()()().) | |
EnsureOpen | (Inherited from Directory.) | |
Equals | (Inherited from Object.) | |
FileExists | Returns true iff the named file exists in this directory. (Overrides Directory..::..FileExists(String).) | |
FileLength | Returns the length in bytes of a file in the directory. (Overrides Directory..::..FileLength(String).) | |
FileModified | Returns the time the named file was last modified. (Overrides Directory..::..FileModified(String).) | |
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.) | |
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 | 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.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
List | Obsolete. (Overrides Directory..::..List()()()().) | |
ListAll | (Overrides Directory..::..ListAll()()()().) | |
MakeLock | Construct a {@link Lock}. (Inherited from Directory.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OpenInput(String) | Returns a stream reading an existing file. (Overrides Directory..::..OpenInput(String).) | |
OpenInput(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.) | |
RenameFile | Obsolete. Renames an existing file in the directory. (Overrides Directory..::..RenameFile(String, String).) | |
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.) | |
SizeInBytes | Return total size in bytes of all files in this
directory. This is currently quantized to
RAMOutputStream.BUFFER_SIZE.
| |
Sync | 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.) | |
ToString | (Inherited from Directory.) | |
TouchFile | Set the modified time of an existing file to now. (Overrides Directory..::..TouchFile(String).) |
Fields
Name | Description | |
---|---|---|
fileMap | ||
isOpen | (Inherited from Directory.) | |
lockFactory | Holds the LockFactory instance (implements locking for
this Directory instance).
(Inherited from Directory.) | |
sizeInBytes |
Properties
Name | Description | |
---|---|---|
fileMap_ForNUnit | ||
isOpen_ForNUnit | (Inherited from Directory.) | |
sizeInBytes_ForNUnitTest |