Section navigation

Public classSealed 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

Public constructor MMapDirectory(string)

Initialises a new MMapDirectory backed by the given file system path. Creates the directory if it does not already exist.

Public property DirectoryPath

Directory path backing this store.

Public method CreateOutput(string)

Creates a new file for writing.

Public method DeleteFile(string)

Deletes the specified file from the directory.

Public method Dispose()

Disposes this directory. Disposal waits for active reader and retained input operations, then closes every tracked IndexInput.

Public method FileExists(string)

Returns whether the specified file exists.

Public method ListAll()

Lists all files in the directory.

Public method OpenInput(string)

Opens an existing file for reading via memory-mapped I/O.