Table of Contents

Public classSealed CodecFileInventory

Namespace
Rowles.LeanCorpus.Index.Format
Assembly
Rowles.LeanCorpus.dll

Describes one index file and the codec version detected from its header.

public sealed record CodecFileInventory : IEquatable<CodecFileInventory>
CodecFileInventory

Public property CodecName

Gets the logical codec name.

Public property CurrentVersion

Gets the current codec version supported by this build, or null when the file has no standard codec header.

Public property Extension

Gets the file extension.

Public property FieldName

Gets the related field name, when known.

Public property FileName

Gets the file name relative to the index directory.

Public property HasValidMagic

Gets a value indicating whether the file has the expected LeanCorpus codec magic.

Public property IsCurrent

Gets a value indicating whether the file is already at the current codec version.

Public property IsSupported

Gets a value indicating whether this build can read the detected version.

Public property Length

Gets the file length in bytes when requested.

Public property SegmentId

Gets the related segment ID, when known.

Public property Version

Gets the detected on-disk codec version, or null when the file has no standard codec header.