pub struct MultiVectorTableRead<const DIM: usize> { /* private fields */ }Expand description
Read-only multi-vector table
Implementations§
Source§impl<const DIM: usize> MultiVectorTableRead<DIM>
impl<const DIM: usize> MultiVectorTableRead<DIM>
Sourcepub fn open(txn: &ReadTransaction, name: &str) -> Result<Self, StorageError>
pub fn open(txn: &ReadTransaction, name: &str) -> Result<Self, StorageError>
Opens a multi-vector table for reading
Sourcepub fn get(&self, key: &Uuid) -> Result<Option<Vec<[f32; DIM]>>, StorageError>
pub fn get(&self, key: &Uuid) -> Result<Option<Vec<[f32; DIM]>>, StorageError>
Retrieves a sequence of vectors by key
Sourcepub fn len(&self) -> Result<u64, StorageError>
pub fn len(&self) -> Result<u64, StorageError>
Returns the number of entries stored
Sourcepub fn is_empty(&self) -> Result<bool, StorageError>
pub fn is_empty(&self) -> Result<bool, StorageError>
Returns true if the table is empty
Auto Trait Implementations§
impl<const DIM: usize> Freeze for MultiVectorTableRead<DIM>
impl<const DIM: usize> !RefUnwindSafe for MultiVectorTableRead<DIM>
impl<const DIM: usize> Send for MultiVectorTableRead<DIM>
impl<const DIM: usize> Sync for MultiVectorTableRead<DIM>
impl<const DIM: usize> Unpin for MultiVectorTableRead<DIM>
impl<const DIM: usize> !UnwindSafe for MultiVectorTableRead<DIM>
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