Expand description
VectorCollection lifecycle: insert, delete, seal, complete_build, compact.
Identity model: every vector inserted into the collection is bound to
a global Surrogate allocated by the Control Plane before the engine
sees the call. The HNSW segments keep their dense local node-ids
internally for cache-locality and SIMD traversal; this file owns the
surrogate_map: HashMap<u32, Surrogate> (global node-id → surrogate)
and reverse surrogate_to_local: HashMap<Surrogate, u32> (for
point-delete by surrogate). User-PK strings live in the catalog and
are translated at the Control Plane response boundary.
Insert/delete ops live in lifecycle_insert_ops.
Compact/snapshot ops live in lifecycle_compact.
Structs§
- Vector
Collection - Manages all vector segments for a single collection (one index key).