Skip to main content

KeyValueDiskANNPopulationRecords

Struct KeyValueDiskANNPopulationRecords 

Source
pub struct KeyValueDiskANNPopulationRecords;
Expand description

Physical population mapping for a versioned Key/Value provider that has enabled the corresponding writer format.

Implementations§

Source§

impl KeyValueDiskANNPopulationRecords

Source

pub fn header_key( field: &[u8], generation: DiskANNGeneration, control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>

Address a generation’s counts under an already encoded complete canonical vector-field prefix. Publication still requires the catalog/head owner’s authority and an enabled provider writer format.

Trait Implementations§

Source§

impl DiskANNPopulationRecordLayout for KeyValueDiskANNPopulationRecords

Source§

fn origin( &self, key: &[u8], value: &[u8], control: &StorageReadControl, ) -> VersionResult<DiskANNPopulationOrigin>

Source§

fn origin_header_prefix( &self, key: &[u8], control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>

Resolve a raw invalidation’s owning field without requiring an existing origin value.
Source§

fn header_prefix( &self, field: &[u8], control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>

Select headers only, for every active generation associated with this exact field.
Source§

fn header( &self, key: &[u8], value: &[u8], control: &StorageReadControl, ) -> VersionResult<DiskANNPopulationHeader>

Source§

fn witness_prefix( &self, header: &[u8], control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>

Source§

fn preview_header( &self, key: &[u8], control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>

Map a header or witness key back to its owning generation’s header; reject unrelated records.
Source§

fn witness_key( &self, header: &[u8], document: DocId, control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>

Source§

fn witness( &self, key: &[u8], value: &[u8], state: DiskANNPopulationState, document: DocId, origin: DiskANNCanonicalOrigin, control: &StorageReadControl, ) -> VersionResult<DiskANNPopulationWitness>

Source§

fn encode_header( &self, key: &[u8], template: &[u8], state: DiskANNPopulationState, control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>

Source§

fn encode_witness( &self, key: &[u8], template: &[u8], witness: DiskANNPopulationWitness, control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>

Source§

fn with_canonical( &self, field: &[u8], dimensions: u32, view: &MergedRecordSnapshot, history: DatabaseId, control: &StorageReadControl, visit: &mut dyn FnMut(&dyn DiskANNQueryRead) -> VersionResult<()>, ) -> VersionResult<()>

Invoke exactly once, outside provider locks, with the existing complete-origin/ordinal validator on this fixed view. Do not reconstruct coordinates or advance a session.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.