pub struct KeyValueIVFRecords;Trait Implementations§
Source§impl IVFRecordLayout for KeyValueIVFRecords
impl IVFRecordLayout for KeyValueIVFRecords
Source§fn metadata_key(
&self,
key: &[u8],
control: &StorageReadControl,
) -> VersionResult<Option<BudgetedVec<u8>>>
fn metadata_key( &self, key: &[u8], control: &StorageReadControl, ) -> VersionResult<Option<BudgetedVec<u8>>>
Return the owning metadata key for a header, centroid or assignment; unrelated records return
None.fn key( &self, metadata: &[u8], address: IVFRecordKey, control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>
fn header( &self, key: &[u8], value: &[u8], control: &StorageReadControl, ) -> VersionResult<IVFRecordHeader>
Source§fn vector_id(
&self,
key: &[u8],
control: &StorageReadControl,
) -> VersionResult<(DocId, u32)>
fn vector_id( &self, key: &[u8], control: &StorageReadControl, ) -> VersionResult<(DocId, u32)>
Decode a canonical vector identity without hydrating its payload.
fn vector( &self, key: &[u8], value: &[u8], control: &StorageReadControl, ) -> VersionResult<(DocId, u32, BudgetedVec<f32>)>
fn centroid( &self, key: &[u8], value: &[u8], control: &StorageReadControl, ) -> VersionResult<(usize, BudgetedVec<f32>)>
fn assignment( &self, key: &[u8], value: &[u8], control: &StorageReadControl, ) -> VersionResult<(DocId, u32, usize)>
fn encode( &self, key: &[u8], template: &[u8], value: IVFRecordValue<'_>, control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>
Auto Trait Implementations§
impl Freeze for KeyValueIVFRecords
impl RefUnwindSafe for KeyValueIVFRecords
impl Send for KeyValueIVFRecords
impl Sync for KeyValueIVFRecords
impl Unpin for KeyValueIVFRecords
impl UnsafeUnpin for KeyValueIVFRecords
impl UnwindSafe for KeyValueIVFRecords
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