Skip to main content

DiskANNBuildInput

Struct DiskANNBuildInput 

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

Repeatable encrypted input, with fixed-width navigation and numeric-side records. Dense navigation IDs follow canonical logical order without a resident global directory.

Implementations§

Source§

impl DiskANNBuildInput

Source

pub fn write_generation( &self, graph: &DiskANNMergedGraph, options: DiskANNGenerationOptions, sink: &mut dyn DiskANNBuildSink, ) -> StorageBackendResult<DiskANNManifest>

Stream immutable records to the selected private generation. The returned manifest must pass the sink owner’s physical seal before opening; it grants no SQL/MVCC publication authority.

Source§

impl DiskANNBuildInput

Source

pub fn merge_partitions( &self, partitions: DiskANNPartitionRuns, directory: &Path, options: DiskANNMergeOptions, ) -> StorageBackendResult<DiskANNMergedGraph>

Consume partition candidates, externally order them, and prune using full navigation vectors. Capture and candidates must share source coverage and both resource allowances.

Source§

impl DiskANNBuildInput

Source

pub fn build_partitions( &self, directory: &Path, parameters: DiskANNIndexParams, options: DiskANNPartitionOptions, ) -> StorageBackendResult<DiskANNPartitionRuns>

Construct one admitted Vamana graph at a time. All temporary runs share the capture’s existing disk allowance, and all buffers retain its original memory/cancellation control.

Source§

impl DiskANNBuildInput

Source

pub fn capture_source( generation: DiskANNGeneration, source: &dyn DiskANNCanonicalRead, directory: &Path, temporary: &DiskANNTemporaryBudget, control: &StorageReadControl, ) -> StorageBackendResult<Self>

Capture a retained provider source without fabricating mutation origins or collecting its corpus. The resulting fingerprint is still not a visibility token or publication authority.

Source

pub fn capture( generation: DiskANNGeneration, dimensions: u32, directory: &Path, temporary: &DiskANNTemporaryBudget, control: &StorageReadControl, read: impl FnOnce(&mut DiskANNBuildVisitor<'_>) -> StorageBackendResult<()>, ) -> StorageBackendResult<Self>

Enumerate every selected canonical ordinal once in document order. Any source or consumer failure discards the entire capture, including failures the source suppresses; temporary data is never a staged or published generation.

Source

pub fn dimensions(&self) -> u32

Source

pub fn node_count(&self) -> u64

Source

pub fn side_count(&self) -> u64

Source

pub fn coverage(&self) -> DiskANNBuildCoverage

Source

pub fn read_node(&self, node: u64) -> StorageBackendResult<DiskANNBuildVector>

Source

pub fn read_side(&self, index: u64) -> StorageBackendResult<DiskANNBuildVector>

Source

pub fn train( &self, pq_bytes: usize, options: PQTrainingOptions, ) -> StorageBackendResult<Option<PQCodebook>>

Train the existing bounded reservoir by replaying captured navigation values. Empty and all-side inputs have no codebook; invalid settings still fail validation.

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> 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.