pub struct IndexState { /* private fields */ }Implementations§
Source§impl IndexState
impl IndexState
pub fn dimension(&self) -> usize
pub fn quantization(&self) -> VectorQuantization
pub fn vector_count(&self) -> usize
pub fn byte_count(&self) -> usize
pub fn all_entries(&self, index: &VectorIndexRef) -> Vec<VectorEntry>
pub fn find_by_row_id( &self, index: &VectorIndexRef, row_id: RowId, ) -> Option<VectorEntry>
pub fn entry_count(&self) -> usize
pub fn clear_hnsw(&self, accountant: &MemoryAccountant)
pub fn hnsw_len(&self) -> Option<usize>
pub fn hnsw_stats(&self) -> Option<HnswGraphStats>
pub fn set_hnsw(&self, hnsw: Option<HnswIndex>, bytes: usize)
pub fn set_hnsw_bytes(&self, bytes: usize)
pub fn hnsw(&self) -> &OnceLock<RwLock<Option<HnswIndex>>>
pub fn storage_bytes_per_entry(&self) -> Vec<usize>
Auto Trait Implementations§
impl !Freeze for IndexState
impl !RefUnwindSafe for IndexState
impl Send for IndexState
impl Sync for IndexState
impl Unpin for IndexState
impl UnsafeUnpin for IndexState
impl !UnwindSafe for IndexState
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