Table of Contents

Public classSealed IndexSnapshot

Namespace
Rowles.LeanLucene.Index.Segment
Assembly
Rowles.LeanLucene.dll

A point-in-time, read-only snapshot of the committed segments. Holds segment IDs so callers can open readers or back up files without risk of segments being merged away.

public sealed class IndexSnapshot
IndexSnapshot

Internal constructorInternal IndexSnapshot(int, IReadOnlyList<SegmentInfo>)

Public property CommitGeneration

Unique generation of the commit this snapshot represents.

Public property Segments

Segment infos captured at snapshot time (defensive copy).

Public property TakenAtUtc

UTC timestamp when the snapshot was taken.