pub struct SQLiteDiskANNHandle { /* private fields */ }Expand description
A native session-bound handle to an already published index. Complete tensor mutations join the caller’s transaction, while query snapshots retain their original catalog, canonical and physical views. Catalog lifecycle owners perform structural creation, rebuilding and removal.
Implementations§
Source§impl SQLiteDiskANNHandle
impl SQLiteDiskANNHandle
Sourcepub fn replace(
&self,
document: DocId,
vectors: &[Vec<f32>],
) -> StorageBackendResult<DiskANNVectorVersion>
pub fn replace( &self, document: DocId, vectors: &[Vec<f32>], ) -> StorageBackendResult<DiskANNVectorVersion>
Replace all ordinals and their origin/change record atomically. Empty tensors remove vector membership. The actual native catalog records become commit requirements in this same evaluated mutation.
Sourcepub fn snapshot(
&self,
) -> StorageBackendResult<RetainedDiskANNIndex<RetainedSQLiteDiskANNCanonical>>
pub fn snapshot( &self, ) -> StorageBackendResult<RetainedDiskANNIndex<RetainedSQLiteDiskANNCanonical>>
Prepare a fresh query snapshot; repeated and nested reads of the returned index share resident data and keep the original generation through subsequent writes, undo and session closure.
Trait Implementations§
Source§impl DiskANNPersistentOwner for SQLiteDiskANNHandle
impl DiskANNPersistentOwner for SQLiteDiskANNHandle
type Snapshot = RetainedDiskANNIndex<RetainedSQLiteDiskANNCanonical>
fn dimensions(&self) -> u32
fn parameters(&self) -> DiskANNIndexParams
fn read_limits(&self) -> DiskANNReadLimits
fn control(&self) -> &StorageReadControl
Source§fn query_metadata(&self) -> StorageBackendResult<DiskANNQueryMetadata>
fn query_metadata(&self) -> StorageBackendResult<DiskANNQueryMetadata>
Read the selected manifest and canonical identity on one provider view without preparing graph, PQ or origin readers.
fn snapshot(&self) -> StorageBackendResult<Self::Snapshot>
fn count(&self) -> StorageBackendResult<usize>
fn contains_document(&self, document: DocId) -> StorageBackendResult<bool>
fn replace( &self, document: DocId, vectors: &[Vec<f32>], ) -> StorageBackendResult<()>
fn rebuild( &self, options: DiskANNIndexOptions, temporary: &DiskANNTemporaryBudget, clear: bool, ) -> StorageBackendResult<()>
Auto Trait Implementations§
impl !RefUnwindSafe for SQLiteDiskANNHandle
impl !UnwindSafe for SQLiteDiskANNHandle
impl Freeze for SQLiteDiskANNHandle
impl Send for SQLiteDiskANNHandle
impl Sync for SQLiteDiskANNHandle
impl Unpin for SQLiteDiskANNHandle
impl UnsafeUnpin for SQLiteDiskANNHandle
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