
MMapDirectory
- Namespace
- Rowles.LeanCorpus.Store
- Assembly
- Rowles.LeanCorpus.dll
Primary directory implementation using memory-mapped files for reads and buffered file streams for writes.
public sealed class MMapDirectory : LeanDirectory, IDisposable
- Inheritance
-
MMapDirectory
- Implements
MMapDirectory(string)
Initialises a new MMapDirectory backed by the given file system path. Creates the directory if it does not already exist.
DirectoryPath
Directory path backing this store.
CreateOutput(string)
Creates a new file for writing.
DeleteFile(string)
Deletes the specified file from the directory.
Dispose()
Disposes this directory. Disposal waits for active reader and retained input operations, then closes every tracked IndexInput.
FileExists(string)
Returns whether the specified file exists.
ListAll()
Lists all files in the directory.
OpenInput(string)
Opens an existing file for reading via memory-mapped I/O.