pub struct SparseVectorTableRead { /* private fields */ }Expand description
Read-only sparse vector table
Implementations§
Source§impl SparseVectorTableRead
impl SparseVectorTableRead
Sourcepub fn open(txn: &ReadTransaction, name: &str) -> Result<Self, StorageError>
pub fn open(txn: &ReadTransaction, name: &str) -> Result<Self, StorageError>
Opens a sparse vector table for reading
Sourcepub fn get(&self, key: &Uuid) -> Result<Option<SparseVector>, StorageError>
pub fn get(&self, key: &Uuid) -> Result<Option<SparseVector>, StorageError>
Retrieves a sparse vector by key
Sourcepub fn len(&self) -> Result<u64, StorageError>
pub fn len(&self) -> Result<u64, StorageError>
Returns the number of vectors 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 Freeze for SparseVectorTableRead
impl !RefUnwindSafe for SparseVectorTableRead
impl Send for SparseVectorTableRead
impl Sync for SparseVectorTableRead
impl Unpin for SparseVectorTableRead
impl !UnwindSafe for SparseVectorTableRead
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