Skip to main content

SQLiteDiskANNCanonical

Struct SQLiteDiskANNCanonical 

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

Canonical tensor owner for a bound native SQLite session. Raw coordinates stay in _vectors; this does not enable a public DiskANN index or publish a generation.

Implementations§

Source§

impl SQLiteDiskANNCanonical

Source

pub fn retire_index( &self, index: &RelationIdentity, resolver: &dyn DiskANNIndexResolver, control: &StorageReadControl, ) -> StorageBackendResult<()>

Retire the selected generation in the caller’s transaction before its SQL catalog row is removed. Preserve raw vectors for the replacement exact index and fence obsolete writers.

Source

pub fn create_index( &self, index: &RelationIdentity, resolver: &dyn DiskANNIndexResolver, options: DiskANNIndexOptions, temporary: &DiskANNTemporaryBudget, control: &StorageReadControl, ) -> StorageBackendResult<()>

Adopt the complete existing raw field and publish its first generation inside the caller’s active catalog transaction. Its private table/index definitions must already exist.

Source

pub fn rebuild_index( &self, index: &RelationIdentity, resolver: &dyn DiskANNIndexResolver, options: DiskANNIndexOptions, temporary: &DiskANNTemporaryBudget, control: &StorageReadControl, ) -> StorageBackendResult<()>

Retain one canonical/catalog view, construct through the common bounded builder, and install its original expected head in this native transaction.

Source§

impl SQLiteDiskANNCanonical

Source

pub fn bind( self, index: RelationIdentity, resolver: Arc<dyn DiskANNIndexResolver + Send + Sync>, limits: DiskANNReadLimits, control: &StorageReadControl, ) -> StorageBackendResult<SQLiteDiskANNHandle>

Bind through the actual native catalog and published head. No generation is implicitly created, adopted or replaced.

Source§

impl SQLiteDiskANNCanonical

Source

pub fn journal_pruner( self, index: &RelationIdentity, resolver: Arc<dyn DiskANNIndexResolver + Send + Sync>, max_record_bytes: usize, control: &StorageReadControl, ) -> StorageBackendResult<Box<dyn DiskANNJournalPruner>>

Source

pub fn maintenance_source( self, index: &RelationIdentity, resolver: Arc<dyn DiskANNIndexResolver + Send + Sync>, max_record_bytes: usize, control: &StorageReadControl, ) -> StorageBackendResult<Box<dyn DiskANNMaintenanceSource>>

Source§

impl SQLiteDiskANNCanonical

Source

pub fn new( connection: ManagedConnection, table: impl Into<String>, field: impl Into<String>, dimensions: u32, ) -> StorageBackendResult<Self>

Source

pub fn replace( &self, document: DocId, vectors: &[Vec<f32>], control: &StorageReadControl, ) -> StorageBackendResult<DiskANNVectorVersion>

Replace every ordinal and the complete tensor’s publishing origin in one batch, including explicit empty replacements. The callback is never replayed after a publication failure.

Source

pub fn retain( &self, control: &StorageReadControl, ) -> StorageBackendResult<RetainedSQLiteDiskANNCanonical>

Retain the exact private/committed source and table incarnation without reading the vector corpus.

Source

pub fn retain_for_index( &self, index: &RelationIdentity, control: &StorageReadControl, ) -> StorageBackendResult<RetainedSQLiteDiskANNCanonical>

Capture the actual native table-name owner, table definition and index definition on the canonical source’s fixed view.

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> ErasedDestructor for T
where T: 'static,

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.