Class RAMDirectory
A memory-resident Directory implementation. Locking implementation is by default the SingleInstanceLockFactory but can be changed with SetLockFactory(LockFactory).
Inherited Members
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public class RAMDirectory : Directory
Constructors
Name | Description |
---|---|
RAMDirectory() | Constructs an empty Directory. |
RAMDirectory(Directory) | Creates a new This should be used only with indices that can fit into memory.
Note that the resulting |
Fields
Name | Description |
---|---|
fileMap | |
internalSizeInBytes |
Methods
Name | Description |
---|---|
CreateOutput(String) | Creates a new, empty file in the directory with the given name. Returns a stream writing this file. |
DeleteFile(String) | Removes an existing file in the directory. |
Dispose(Boolean) | Closes the store to future operations, releasing associated memory. |
FileExists(String) | Returns true iff the named file exists in this directory. |
FileLength(String) | Returns the length in bytes of a file in the directory. |
FileModified(String) | Returns the time the named file was last modified. |
ListAll() | |
OpenInput(String) | Returns a stream reading an existing file. |
SizeInBytes() | Return total size in bytes of all files in this directory. This is currently quantized to RAMOutputStream.BUFFER_SIZE. |
TouchFile(String) | Set the modified time of an existing file to now. |