Section navigation

Public namespace Rowles.LeanCorpus.Store

Classes

Public class IndexInput

Readable input over a memory-mapped file. Maintains a position cursor and uses ReadUnaligned<T>(scoped ref readonly byte) for primitive reads. Acquired pointer is held for the lifetime of the accessor to avoid repeated acquire/release overhead.

Public class IndexOutput

Buffered sequential writer backed by FileStream and ArrayPool<T>. Used at index-build time only.

Public class LeanDirectory

Abstract base for storage operations. Named LeanDirectory to avoid collision with Directory.

Public class MMapDirectory

Primary directory implementation using memory-mapped files for reads and buffered file streams for writes.

Public class WriteLockException

Thrown when an IndexWriter cannot acquire the write lock because another writer already holds it for the same directory.