pub struct KeyValueHNSWRecords;Trait Implementations§
Source§impl HNSWRecordLayout for KeyValueHNSWRecords
impl HNSWRecordLayout for KeyValueHNSWRecords
fn metadata_key( &self, key: &[u8], control: &StorageReadControl, ) -> VersionResult<Option<BudgetedVec<u8>>>
fn key( &self, metadata: &[u8], address: Key, control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>
Source§fn edges_prefix(
&self,
metadata: &[u8],
_source: Option<u64>,
control: &StorageReadControl,
) -> VersionResult<Option<BudgetedVec<u8>>>
fn edges_prefix( &self, metadata: &[u8], _source: Option<u64>, control: &StorageReadControl, ) -> VersionResult<Option<BudgetedVec<u8>>>
None means adjacency is embedded in each node. Otherwise select all edges or one source’s edges.fn header( &self, key: &[u8], value: &[u8], control: &StorageReadControl, ) -> VersionResult<HNSWRecordHeader>
fn vector_id( &self, key: &[u8], control: &StorageReadControl, ) -> VersionResult<(DocId, u32)>
fn vector( &self, key: &[u8], value: &[u8], control: &StorageReadControl, ) -> VersionResult<(DocId, u32, BudgetedVec<f32>)>
Source§fn node(
&self,
key: &[u8],
value: &[u8],
control: &StorageReadControl,
) -> VersionResult<Budgeted<HNSWNodeSnapshot>>
fn node( &self, key: &[u8], value: &[u8], control: &StorageReadControl, ) -> VersionResult<Budgeted<HNSWNodeSnapshot>>
Separate-edge layouts return one empty adjacency list for each declared layer.
fn edge( &self, _key: &[u8], _value: &[u8], _control: &StorageReadControl, ) -> VersionResult<(u64, usize, u64)>
fn encode( &self, key: &[u8], template: &[u8], value: Value<'_>, control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>
Auto Trait Implementations§
impl Freeze for KeyValueHNSWRecords
impl RefUnwindSafe for KeyValueHNSWRecords
impl Send for KeyValueHNSWRecords
impl Sync for KeyValueHNSWRecords
impl Unpin for KeyValueHNSWRecords
impl UnsafeUnpin for KeyValueHNSWRecords
impl UnwindSafe for KeyValueHNSWRecords
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