pub struct MultiVectorTable<'txn, const DIM: usize> { /* private fields */ }Expand description
Table for storing multi-vectors (sequences of vectors)
Implementations§
Source§impl<'txn, const DIM: usize> MultiVectorTable<'txn, DIM>
impl<'txn, const DIM: usize> MultiVectorTable<'txn, DIM>
Sourcepub fn open(txn: &'txn WriteTransaction, name: &str) -> Result<Self, TableError>
pub fn open(txn: &'txn WriteTransaction, name: &str) -> Result<Self, TableError>
Opens a multi-vector table for writing
Sourcepub fn insert(
&mut self,
key: &Uuid,
vectors: &[[f32; DIM]],
) -> Result<(), TableError>
pub fn insert( &mut self, key: &Uuid, vectors: &[[f32; DIM]], ) -> Result<(), TableError>
Inserts a sequence of vectors
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<'txn, const DIM: usize> Freeze for MultiVectorTable<'txn, DIM>
impl<'txn, const DIM: usize> !RefUnwindSafe for MultiVectorTable<'txn, DIM>
impl<'txn, const DIM: usize> Send for MultiVectorTable<'txn, DIM>
impl<'txn, const DIM: usize> Sync for MultiVectorTable<'txn, DIM>
impl<'txn, const DIM: usize> Unpin for MultiVectorTable<'txn, DIM>
impl<'txn, const DIM: usize> !UnwindSafe for MultiVectorTable<'txn, 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