pub struct RetainedVectorIndexBuilder { /* private fields */ }Expand description
Append selected document tensors without copying their buffers or reserving their payload twice. The caller converts inputs under this builder’s allowance and transfers their reservations. Finalization orders identities, validates unique tensor ordinals and retains the same allowance for readers.
Implementations§
Source§impl RetainedVectorIndexBuilder
impl RetainedVectorIndexBuilder
pub fn new(dimensions: u32, control: &StorageReadControl) -> Self
pub fn dimensions(&self) -> u32
pub fn add_document( &mut self, id: DocId, vectors: Budgeted<Vec<Vec<f32>>>, ) -> StorageBackendResult<()>
pub fn finish(self) -> StorageBackendResult<RetainedVectorIndex>
Auto Trait Implementations§
impl Freeze for RetainedVectorIndexBuilder
impl RefUnwindSafe for RetainedVectorIndexBuilder
impl Send for RetainedVectorIndexBuilder
impl Sync for RetainedVectorIndexBuilder
impl Unpin for RetainedVectorIndexBuilder
impl UnsafeUnpin for RetainedVectorIndexBuilder
impl UnwindSafe for RetainedVectorIndexBuilder
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