Table of Contents

Public namespace Rowles.LeanLucene.Codecs.Vectors

Classes

Internal classInternal InMemoryVectorSource

In-memory IVectorSource backed by an indexed dictionary of vectors. Used during HNSW build before the .vec file has been written.

Internal classInternal VectorFilePaths

Helpers for resolving per-field vector and HNSW file paths within a segment. Convention: "{segmentId}v{sanitisedFieldName}.{ext}" so multiple vector fields can co-exist in one segment without colliding with the legacy single-vector layout.

Internal classInternal VectorReader

Reads dense float vectors written by VectorWriter. Uses memory-mapped I/O for zero-copy vector access.

Internal classInternal VectorReaderSource

Adapts a VectorReader to the IVectorSource contract so an HNSW graph loaded from disc can resolve vector data on demand.

Internal classInternal VectorWriter

Writes dense float vectors with a fixed-dimension layout for implicit offset indexing. Format: [int: vectorCount][int: dimension][float[][]: vector data].

Interfaces

Internal interfaceInternal IVectorSource

Provides random access to vectors during HNSW graph operations. Implementations include an in-memory list adapter (used at build time) and a memory-mapped VectorReader adapter (used at search and merge time).