Table of Contents

Public namespace Rowles.LeanCorpus.Index

Namespaces

Public namespace Rowles.LeanCorpus.Index.Backup
Public namespace Rowles.LeanCorpus.Index.Compatibility
Public namespace Rowles.LeanCorpus.Index.Format
Public namespace Rowles.LeanCorpus.Index.Indexer
Public namespace Rowles.LeanCorpus.Index.Migration
Public namespace Rowles.LeanCorpus.Index.Segment

Classes

Internal classInternal CommitData
Internal classInternal CommitFileFormat

On-disk format helpers for segments_N commit files. Commits written by IndexWriter append a trailer of the form \n#crc32=<hex>\n after the JSON body so torn writes can be detected on recovery. This helper centralises read/write so every parser strips and validates the trailer consistently.

Public class IndexCheckIssue

Structured validation issue returned by Check(MMapDirectory, IndexCheckOptions?).

Public class IndexCheckIssueCodes

Stable issue codes emitted by IndexValidator.

Public class IndexCheckOptions

Options controlling index validation depth.

Public class IndexCheckResult

Result of an Check(MMapDirectory, IndexCheckOptions?) call.

Internal classInternal IndexFileInspector
Public class IndexRecovery

Lightweight crash recovery for LeanCorpus indices. On startup: validates the latest commit, falls back to prior generations on corruption, and cleans up orphaned segment files and temp files.

Public class IndexRecovery.RecoveryResult

Result of crash recovery.

Internal classInternal IndexRepairRecommendations
Public class IndexValidator

Validates the structural integrity of a LeanCorpus index stored in a MMapDirectory.

Enums

Public enum IndexCheckSeverity

Severity of an index validation issue.

Public enum IndexOpenCompatibilityMode

Controls compatibility checks performed before opening an index.