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
impl SQLiteDiskANNCanonical
Sourcepub fn retire_index(
&self,
index: &RelationIdentity,
resolver: &dyn DiskANNIndexResolver,
control: &StorageReadControl,
) -> StorageBackendResult<()>
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.
Sourcepub fn create_index(
&self,
index: &RelationIdentity,
resolver: &dyn DiskANNIndexResolver,
options: DiskANNIndexOptions,
temporary: &DiskANNTemporaryBudget,
control: &StorageReadControl,
) -> StorageBackendResult<()>
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.
Sourcepub fn rebuild_index(
&self,
index: &RelationIdentity,
resolver: &dyn DiskANNIndexResolver,
options: DiskANNIndexOptions,
temporary: &DiskANNTemporaryBudget,
control: &StorageReadControl,
) -> StorageBackendResult<()>
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
impl SQLiteDiskANNCanonical
Sourcepub fn bind(
self,
index: RelationIdentity,
resolver: Arc<dyn DiskANNIndexResolver + Send + Sync>,
limits: DiskANNReadLimits,
control: &StorageReadControl,
) -> StorageBackendResult<SQLiteDiskANNHandle>
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
impl SQLiteDiskANNCanonical
pub fn journal_pruner( self, index: &RelationIdentity, resolver: Arc<dyn DiskANNIndexResolver + Send + Sync>, max_record_bytes: usize, control: &StorageReadControl, ) -> StorageBackendResult<Box<dyn DiskANNJournalPruner>>
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
impl SQLiteDiskANNCanonical
pub fn new( connection: ManagedConnection, table: impl Into<String>, field: impl Into<String>, dimensions: u32, ) -> StorageBackendResult<Self>
Sourcepub fn replace(
&self,
document: DocId,
vectors: &[Vec<f32>],
control: &StorageReadControl,
) -> StorageBackendResult<DiskANNVectorVersion>
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.
Sourcepub fn retain(
&self,
control: &StorageReadControl,
) -> StorageBackendResult<RetainedSQLiteDiskANNCanonical>
pub fn retain( &self, control: &StorageReadControl, ) -> StorageBackendResult<RetainedSQLiteDiskANNCanonical>
Retain the exact private/committed source and table incarnation without reading the vector corpus.
Sourcepub fn retain_for_index(
&self,
index: &RelationIdentity,
control: &StorageReadControl,
) -> StorageBackendResult<RetainedSQLiteDiskANNCanonical>
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.