Table of Contents

Internal classSealedInternal InMemoryVectorSource

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

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

internal sealed class InMemoryVectorSource : IVectorSource
InMemoryVectorSource
Implements

Constructors

Public constructor InMemoryVectorSource(Dictionary<int, ReadOnlyMemory<float>>, int)

Properties

Public propertyRead-only Count

Total number of vectors addressable by this source.

Public propertyRead-only Dimension

Vector dimension; every vector returned has exactly this length.

Methods

Public method GetVector(int)

Returns the vector for a document identifier as a read-only span.