Rowles.LeanLucene.Codecs.Vectors
Classes
InMemoryVectorSource
In-memory IVectorSource backed by an indexed dictionary of vectors. Used during HNSW build before the .vec file has been written.
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.
VectorReader
Reads dense float vectors written by VectorWriter. Uses memory-mapped I/O for zero-copy vector access.
VectorReaderSource
Adapts a VectorReader to the IVectorSource contract so an HNSW graph loaded from disc can resolve vector data on demand.
VectorWriter
Writes dense float vectors with a fixed-dimension layout for implicit offset indexing. Format: [int: vectorCount][int: dimension][float[][]: vector data].
Interfaces
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).