pub struct HnswIndexEntry {
pub name: String,
pub column_name: String,
pub index: HnswIndex,
pub needs_rebuild: bool,
}Expand description
One HNSW index attached to a table. Phase 7d.2 only supports L2
distance; cosine and dot are 7d.x follow-ups (would require either
distinct USING methods like hnsw_cosine or a WITH (metric = …)
clause — see docs/phase-7-plan.md for the deferred decision).
Fields§
§name: StringUser-supplied name from CREATE INDEX <name> …. Unique across
both secondary_indexes and hnsw_indexes on a given table.
column_name: StringThe VECTOR column this index covers.
index: HnswIndexThe graph itself.
needs_rebuild: boolPhase 7d.3 — true iff a DELETE or UPDATE-on-vector-col has invalidated the graph since the last rebuild. INSERT maintains the graph incrementally and leaves this false. The next save rebuilds dirty indexes from current rows before serializing.
Trait Implementations§
Source§impl Clone for HnswIndexEntry
impl Clone for HnswIndexEntry
Source§fn clone(&self) -> HnswIndexEntry
fn clone(&self) -> HnswIndexEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HnswIndexEntry
impl RefUnwindSafe for HnswIndexEntry
impl Send for HnswIndexEntry
impl Sync for HnswIndexEntry
impl Unpin for HnswIndexEntry
impl UnsafeUnpin for HnswIndexEntry
impl UnwindSafe for HnswIndexEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more