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
impl KeyValueDiskANNPopulationRecords
Sourcepub fn header_key(
field: &[u8],
generation: DiskANNGeneration,
control: &StorageReadControl,
) -> VersionResult<BudgetedVec<u8>>
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
impl DiskANNPopulationRecordLayout for KeyValueDiskANNPopulationRecords
fn origin( &self, key: &[u8], value: &[u8], control: &StorageReadControl, ) -> VersionResult<DiskANNPopulationOrigin>
Source§fn origin_header_prefix(
&self,
key: &[u8],
control: &StorageReadControl,
) -> VersionResult<BudgetedVec<u8>>
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>>
fn header_prefix( &self, field: &[u8], control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>
Select headers only, for every active generation associated with this exact field.
fn header( &self, key: &[u8], value: &[u8], control: &StorageReadControl, ) -> VersionResult<DiskANNPopulationHeader>
fn witness_prefix( &self, header: &[u8], control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>
Source§fn preview_header(
&self,
key: &[u8],
control: &StorageReadControl,
) -> VersionResult<BudgetedVec<u8>>
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.
fn witness_key( &self, header: &[u8], document: DocId, control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>
fn witness( &self, key: &[u8], value: &[u8], state: DiskANNPopulationState, document: DocId, origin: DiskANNCanonicalOrigin, control: &StorageReadControl, ) -> VersionResult<DiskANNPopulationWitness>
fn encode_header( &self, key: &[u8], template: &[u8], state: DiskANNPopulationState, control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>
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<()>
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§
impl Freeze for KeyValueDiskANNPopulationRecords
impl RefUnwindSafe for KeyValueDiskANNPopulationRecords
impl Send for KeyValueDiskANNPopulationRecords
impl Sync for KeyValueDiskANNPopulationRecords
impl Unpin for KeyValueDiskANNPopulationRecords
impl UnsafeUnpin for KeyValueDiskANNPopulationRecords
impl UnwindSafe for KeyValueDiskANNPopulationRecords
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