Skip to main content

DiskANNQueryMetadata

Struct DiskANNQueryMetadata 

Source
pub struct DiskANNQueryMetadata {
    pub manifest: DiskANNManifest,
    pub corpus_fingerprint: Option<[u8; 32]>,
    pub canonical_counts: Option<DiskANNCanonicalCounts>,
    pub read_limits: DiskANNReadLimits,
    pub read_capabilities: DiskANNReadCapabilities,
}

Fields§

§manifest: DiskANNManifest§corpus_fingerprint: Option<[u8; 32]>

None is an unverifiable canonical selection, never permission to trust a caller’s version label.

§canonical_counts: Option<DiskANNCanonicalCounts>

Exact selected-view populations when maintained by the canonical owner; absence is not a measured zero.

§read_limits: DiskANNReadLimits§read_capabilities: DiskANNReadCapabilities

Implementations§

Source§

impl DiskANNQueryMetadata

Source

pub fn query_statistics( &self, query: &[f32], control: &StorageReadControl, ) -> StorageBackendResult<DiskANNQueryStats>

Project stored physical facts and classify the query with the same canonical norm calculation as execution, without normalizing coordinates or reading artifact bodies.

Source

pub fn index_statistics( &self, control: &StorageReadControl, ) -> StorageBackendResult<DiskANNIndexStats>

Project the selected field without evaluating query arguments or preparing search artifacts.

Source§

impl DiskANNQueryMetadata

Source

pub fn capture( canonical: &dyn DiskANNCanonicalRead, source: &dyn DiskANNPageSource, parameters: DiskANNIndexParams, limits: DiskANNReadLimits, control: &StorageReadControl, ) -> StorageBackendResult<Self>

Read the bounded manifest, canonical identity and maintained counts from an already associated provider view. This validates the selected definition, not graph/PQ/origin bodies; opening an executable reader retains its complete validation. No vector query or logical observation is performed.

Source

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

Versioned SHA-256 of the complete validated manifest, including physical incarnations, graph/PQ generation, build revisions and effective candidate-selection settings.

Trait Implementations§

Source§

impl Clone for DiskANNQueryMetadata

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
Source§

impl Copy for DiskANNQueryMetadata

Source§

impl Debug for DiskANNQueryMetadata

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for DiskANNQueryMetadata

Source§

impl PartialEq for DiskANNQueryMetadata

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DiskANNQueryMetadata

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.