Table of Contents

Internal classStaticInternal CodecConstants

Namespace
Rowles.LeanLucene.Codecs
Assembly
Rowles.LeanLucene.dll

Shared magic number and format version constants for all codec file types. Every codec file starts with [int32: Magic][byte: Version].

internal static class CodecConstants
CodecConstants

Fields

Public fieldConstant BKDVersion
Public fieldConstant FieldLengthVersion
Public fieldConstant HeaderSize

Header size in bytes: 4 (magic) + 1 (version).

Public fieldConstant HnswVersion
Public fieldConstant Magic

Magic number written as the first 4 bytes of every LeanLucene codec file.

Public fieldConstant NormsVersion
Public fieldConstant NumericDocValuesVersion
Public fieldConstant PostingsVersion
Public fieldConstant SortedDocValuesVersion
Public fieldConstant StoredFieldsVersion
Public fieldConstant TermDictionaryVersion
Public fieldConstant TermVectorsVersion
Public fieldConstant VectorVersion

Methods

Public methodStatic ReadHeaderVersion(IndexInput, byte, string)

Validates the magic number and returns the version byte from an IndexInput.

Public methodStatic ValidateHeader(IndexInput, byte, string)

Validates the magic number and version from an IndexInput. Throws on mismatch.

Public methodStatic ValidateHeader(BinaryReader, byte, string)

Validates the magic number and version from a BinaryReader. Throws on mismatch.

Public methodStatic WriteHeader(IndexOutput, byte)

Writes the standard codec header to an IndexOutput.

Public methodStatic WriteHeader(BinaryWriter, byte)

Writes the standard codec header to a BinaryWriter.