pub struct RetainedSQLiteDiskANNCanonical { /* private fields */ }Expand description
A fixed native canonical source. Each visitor borrows one vector; it must not reenter this source. Failure invalidates any partial output.
Implementations§
Source§impl RetainedSQLiteDiskANNCanonical
impl RetainedSQLiteDiskANNCanonical
Sourcepub fn next_change_after(
&self,
after: Option<DocId>,
control: &StorageReadControl,
) -> StorageBackendResult<Option<DiskANNChangeIdentity>>
pub fn next_change_after( &self, after: Option<DocId>, control: &StorageReadControl, ) -> StorageBackendResult<Option<DiskANNChangeIdentity>>
Return each currently journaled document once on this canonical view, including an empty replacement. This does not establish the coverage of a published generation.
Source§impl RetainedSQLiteDiskANNCanonical
impl RetainedSQLiteDiskANNCanonical
Sourcepub fn into_vector_index(
self,
resolver: &dyn DiskANNIndexResolver,
limits: DiskANNReadLimits,
control: &StorageReadControl,
) -> StorageBackendResult<Option<RetainedDiskANNIndex<Self>>>
pub fn into_vector_index( self, resolver: &dyn DiskANNIndexResolver, limits: DiskANNReadLimits, control: &StorageReadControl, ) -> StorageBackendResult<Option<RetainedDiskANNIndex<Self>>>
Consume the retained native view into the common read-only VectorIndex owner without copying canonical vectors or reconstructing the graph.
Sourcepub fn query(
&self,
resolver: &dyn DiskANNIndexResolver,
limits: DiskANNReadLimits,
control: &StorageReadControl,
) -> StorageBackendResult<Option<DiskANNQuery<'_>>>
pub fn query( &self, resolver: &dyn DiskANNIndexResolver, limits: DiskANNReadLimits, control: &StorageReadControl, ) -> StorageBackendResult<Option<DiskANNQuery<'_>>>
Prepare the common Storage document search on this native canonical/catalog view and its selected physical source.
Sourcepub fn selected_source(
&self,
resolver: &dyn DiskANNIndexResolver,
control: &StorageReadControl,
) -> StorageBackendResult<Option<Arc<KeyValueDiskANNSource>>>
pub fn selected_source( &self, resolver: &dyn DiskANNIndexResolver, control: &StorageReadControl, ) -> StorageBackendResult<Option<Arc<KeyValueDiskANNSource>>>
Select physical graph data on this native canonical/catalog view, retaining private publication resources without advancing the SQL snapshot or loading page/PQ bodies.
Source§impl RetainedSQLiteDiskANNCanonical
impl RetainedSQLiteDiskANNCanonical
Sourcepub fn index_scope(
&self,
resolver: &dyn DiskANNIndexResolver,
control: &StorageReadControl,
) -> StorageBackendResult<DiskANNIndexScope>
pub fn index_scope( &self, resolver: &dyn DiskANNIndexResolver, control: &StorageReadControl, ) -> StorageBackendResult<DiskANNIndexScope>
Resolve the index incarnation from this source’s fixed native catalog view through the SQL owner.
pub fn index_parameters(&self) -> Option<DiskANNIndexParams>
Sourcepub fn require_current_index(
&self,
read: &dyn KeyValueRead,
batch: &mut dyn KeyValueBatch,
control: &StorageReadControl,
) -> StorageBackendResult<()>
pub fn require_current_index( &self, read: &dyn KeyValueRead, batch: &mut dyn KeyValueBatch, control: &StorageReadControl, ) -> StorageBackendResult<()>
Recheck the captured native definitions and stage committed requirements on one publication command’s raw record reader/batch. This does not publish a generation or complete the caller’s transaction.
Sourcepub fn origin(
&self,
document: DocId,
control: &StorageReadControl,
) -> StorageBackendResult<Option<DiskANNVectorVersion>>
pub fn origin( &self, document: DocId, control: &StorageReadControl, ) -> StorageBackendResult<Option<DiskANNVectorVersion>>
Return an origin only after verifying its complete contiguous native canonical ordinal set. An origin with zero ordinals denotes an explicit empty replacement.
Sourcepub fn visit_document(
&self,
document: DocId,
control: &StorageReadControl,
visit: &mut DiskANNCanonicalVectorVisitor<'_>,
) -> StorageBackendResult<Option<DiskANNVectorVersion>>
pub fn visit_document( &self, document: DocId, control: &StorageReadControl, visit: &mut DiskANNCanonicalVectorVisitor<'_>, ) -> StorageBackendResult<Option<DiskANNVectorVersion>>
Stream all visible ordinals with their original coordinate bits, independently of navigation, scoring or document candidate selection.
Trait Implementations§
Source§impl DiskANNCanonicalRead for RetainedSQLiteDiskANNCanonical
impl DiskANNCanonicalRead for RetainedSQLiteDiskANNCanonical
Source§fn population_counts(
&self,
generation: DiskANNGeneration,
control: &StorageReadControl,
) -> StorageBackendResult<Option<DiskANNCanonicalCounts>>
fn population_counts( &self, generation: DiskANNGeneration, control: &StorageReadControl, ) -> StorageBackendResult<Option<DiskANNCanonicalCounts>>
None; this operation must not enumerate documents, journals or origin pages to reconstruct counts.Source§fn corpus_fingerprint(
&self,
control: &StorageReadControl,
) -> StorageBackendResult<Option<[u8; 32]>>
fn corpus_fingerprint( &self, control: &StorageReadControl, ) -> StorageBackendResult<Option<[u8; 32]>>
Source§fn read_vector(
&self,
document: DocId,
ordinal: u32,
control: &StorageReadControl,
) -> StorageBackendResult<Option<BudgetedVec<f32>>>
fn read_vector( &self, document: DocId, ordinal: u32, control: &StorageReadControl, ) -> StorageBackendResult<Option<BudgetedVec<f32>>>
Source§fn check_control(
&self,
control: &StorageReadControl,
) -> StorageBackendResult<()>
fn check_control( &self, control: &StorageReadControl, ) -> StorageBackendResult<()>
Source§fn dimensions(&self) -> u32
fn dimensions(&self) -> u32
Source§fn next_document_after(
&self,
after: Option<DocId>,
control: &StorageReadControl,
) -> StorageBackendResult<Option<DocId>>
fn next_document_after( &self, after: Option<DocId>, control: &StorageReadControl, ) -> StorageBackendResult<Option<DocId>>
after from the union of canonical keys and origin keys. Include empty replacements and unstamped canonical values; read key metadata only, with bounded workspace.