pub struct VectorStore { /* private fields */ }Implementations§
Source§impl VectorStore
impl VectorStore
pub fn new(_legacy_hnsw: Arc<OnceLock<RwLock<Option<HnswIndex>>>>) -> Self
pub fn register_index( &self, index: VectorIndexRef, dimension: usize, quantization: VectorQuantization, )
pub fn register_or_reconfigure_empty_index( &self, index: VectorIndexRef, dimension: usize, quantization: VectorQuantization, )
pub fn deregister_index( &self, index: &VectorIndexRef, accountant: &MemoryAccountant, )
pub fn deregister_table(&self, table: &str, accountant: &MemoryAccountant)
pub fn rename_index( &self, old: &VectorIndexRef, new: VectorIndexRef, ) -> Result<()>
pub fn state(&self, index: &VectorIndexRef) -> Result<Arc<IndexState>>
pub fn try_state(&self, index: &VectorIndexRef) -> Option<Arc<IndexState>>
pub fn is_empty(&self) -> bool
pub fn index_count(&self) -> usize
pub fn validate_vector( &self, index: &VectorIndexRef, actual: usize, ) -> Result<()>
pub fn apply_inserts(&self, inserts: Vec<VectorEntry>)
pub fn apply_deletes(&self, deletes: Vec<(VectorIndexRef, RowId, TxId)>)
pub fn apply_moves( &self, moves: Vec<(VectorIndexRef, RowId, RowId, TxId)>, lsn: Lsn, )
pub fn insert_loaded_vector(&self, entry: VectorEntry)
pub fn all_entries(&self) -> Vec<VectorEntry>
pub fn prune_row_ids( &self, row_ids: &HashSet<RowId>, accountant: &MemoryAccountant, ) -> usize
pub fn entries_for_index( &self, index: &VectorIndexRef, ) -> Result<Vec<VectorEntry>>
pub fn vector_count(&self) -> usize
pub fn has_hnsw_index(&self) -> bool
pub fn has_hnsw_index_for(&self, index: &VectorIndexRef) -> bool
pub fn clear_hnsw(&self, accountant: &MemoryAccountant)
pub fn clear_hnsw_for( &self, index: &VectorIndexRef, accountant: &MemoryAccountant, )
pub fn find_by_row_id(&self, row_id: RowId) -> Option<VectorEntry>
pub fn live_entry_for_row( &self, index: &VectorIndexRef, row_id: RowId, snapshot: SnapshotId, ) -> Option<VectorEntry>
pub fn live_entries_for_row( &self, row_id: RowId, snapshot: SnapshotId, ) -> Vec<VectorEntry>
pub fn vector_for_row_lsn( &self, index: &VectorIndexRef, row_id: RowId, lsn: Lsn, ) -> Option<Vec<f32>>
pub fn storage_bytes_per_entry( &self, index: &VectorIndexRef, ) -> Result<Vec<usize>>
pub fn index_infos(&self) -> Vec<VectorIndexInfo>
pub fn build_lock(&self) -> MutexGuard<'_, ()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for VectorStore
impl !RefUnwindSafe for VectorStore
impl Send for VectorStore
impl Sync for VectorStore
impl Unpin for VectorStore
impl UnsafeUnpin for VectorStore
impl !UnwindSafe for VectorStore
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more