Rowles.LeanCorpus.Store
Classes
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.
IndexOutput
Buffered sequential writer backed by FileStream and ArrayPool<T>. Used at index-build time only.
LeanDirectory
Abstract base for storage operations. Named LeanDirectory to avoid collision with Directory.
MMapDirectory
Primary directory implementation using memory-mapped files for reads and buffered file streams for writes.
WriteLockException
Thrown when an IndexWriter cannot acquire the write lock because another writer already holds it for the same directory.