Skip to main content

KeyValueDiskANNStore

Struct KeyValueDiskANNStore 

Source
pub struct KeyValueDiskANNStore { /* private fields */ }
Expand description

A dedicated physical staging session. Its completion methods resolve existing evaluated attempts; they never replay a mutation or complete the caller’s SQL transaction.

Implementations§

Source§

impl KeyValueDiskANNStore

Source

pub fn reclaim_abandoned_step( &self, generation: DiskANNGeneration, max_records: usize, control: &StorageReadControl, ) -> StorageBackendResult<bool>

Reclaim an unpublished generation only after exclusively acquiring its abandoned physical owner. A live build, retained sealed source or uncertain original attempt returns false without deleting anything. Each successful step deletes at most 64 payload records; partial cleanup persists Discarding and can resume through either reclamation method. Current published heads are always rejected.

Source

pub fn reclaim_retired_step( &self, generation: DiskANNGeneration, max_records: usize, control: &StorageReadControl, ) -> StorageBackendResult<bool>

Delete at most 64 payload records from a durably retired generation. The final step removes its state. Current heads and unpublished builds cannot be reclaimed here. Retained sources keep the historical pages through ordinary MVCC leases; version reclamation remains separate. Resolve an uncertain original attempt before calling again.

Source§

impl KeyValueDiskANNStore

Source

pub fn allocate_bound_stage( &self, scope: &DiskANNIndexScope, control: &StorageReadControl, ) -> StorageBackendResult<KeyValueDiskANNStage>

Atomically establish catalog mappings and an owned Writing generation. Publication still requires the retained source’s current-definition guard and complete build coverage; start remains idempotent.

Source

pub fn connect( source: &Arc<dyn KeyValueStore>, control: &StorageReadControl, ) -> StorageBackendResult<Self>

Source

pub fn initialize( &self, control: &StorageReadControl, ) -> StorageBackendResult<[u8; 16]>

Establish a persistent data identity once. It remains separate from transaction-history identity across backup restoration.

Source

pub fn data_identity( &self, control: &StorageReadControl, ) -> StorageBackendResult<[u8; 16]>

Source

pub fn allocate_stage( &self, table: u64, index: u64, control: &StorageReadControl, ) -> StorageBackendResult<KeyValueDiskANNStage>

Reserve a never-reused generation number. Starting the returned handle is a separate fallible operation, so the caller retains its identity if creation loses its commit reply.

Source

pub fn resume_stage( &self, generation: DiskANNGeneration, control: &StorageReadControl, ) -> StorageBackendResult<KeyValueDiskANNStage>

Reopen an existing staging owner; an absent or discarded generation cannot be recreated by this path.

Source

pub fn open_source( &self, generation: DiskANNGeneration, control: &StorageReadControl, ) -> StorageBackendResult<Arc<KeyValueDiskANNSource>>

Source

pub fn commit_pending(&self) -> StorageBackendResult<()>

Finish the exact retained attempt, including acknowledgement after a durable commit with a lost reply.

Source

pub fn rollback_pending(&self) -> StorageBackendResult<()>

Resolve or abort the exact retained attempt. A confirmed durable commit remains a committed outcome from the underlying session.

Trait Implementations§

Source§

impl Clone for KeyValueDiskANNStore

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.