pub trait VectorAccessor: Send + Sync {
// Required method
fn get_vector(&self, id: NodeId) -> Option<Arc<[f32]>>;
}Expand description
Trait for reading vectors by node ID.
HNSW is topology-only: vectors live in property storage, not in HNSW nodes. This trait provides the bridge for reading them.
Required Methods§
Implementors§
impl VectorAccessor for PropertyVectorAccessor<'_>
impl<F> VectorAccessor for F
Blanket implementation for closures, useful in tests.