pub struct RetainedVectorIndexesBuilder { /* private fields */ }Expand description
Assemble reconstructed vector indexes without opaque standard-map nodes. Every node, copied name, boxed adapter and shared owner is reserved before allocation.
Implementations§
Source§impl RetainedVectorIndexesBuilder
impl RetainedVectorIndexesBuilder
pub fn new(control: &StorageReadControl) -> Self
Sourcepub fn copy_field(
field: &str,
control: &StorageReadControl,
) -> StorageBackendResult<(FieldName, MemoryReservation)>
pub fn copy_field( field: &str, control: &StorageReadControl, ) -> StorageBackendResult<(FieldName, MemoryReservation)>
Admit and copy a field name before a reconstruction producer retains it in intermediate or final metadata.
Sourcepub fn insert_admitted<T: VectorIndex + 'static>(
&mut self,
field: FieldName,
index: T,
memory: MemoryReservation,
) -> StorageBackendResult<()>
pub fn insert_admitted<T: VectorIndex + 'static>( &mut self, field: FieldName, index: T, memory: MemoryReservation, ) -> StorageBackendResult<()>
Adopt an already admitted field name and a provider-owned immutable index. The name lease must cover its actual capacity and belong to this collection’s allowance.
pub fn finish(self) -> StorageBackendResult<VectorIndexes>
Auto Trait Implementations§
impl !RefUnwindSafe for RetainedVectorIndexesBuilder
impl !UnwindSafe for RetainedVectorIndexesBuilder
impl Freeze for RetainedVectorIndexesBuilder
impl Send for RetainedVectorIndexesBuilder
impl Sync for RetainedVectorIndexesBuilder
impl Unpin for RetainedVectorIndexesBuilder
impl UnsafeUnpin for RetainedVectorIndexesBuilder
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