Struct lance_index::vector::ivf::IvfImpl
source · pub struct IvfImpl<T: ArrowFloatType + Dot + L2 + Cosine> { /* private fields */ }Expand description
IVF - IVF file partition
Implementations§
Trait Implementations§
source§impl<T: ArrowFloatType + Dot + L2 + Cosine + 'static> Ivf for IvfImpl<T>
impl<T: ArrowFloatType + Dot + L2 + Cosine + 'static> Ivf for IvfImpl<T>
source§fn compute_partitions<'life0, 'life1, 'async_trait>(
&'life0 self,
data: &'life1 FixedSizeListArray
) -> Pin<Box<dyn Future<Output = Result<UInt32Array>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn compute_partitions<'life0, 'life1, 'async_trait>(
&'life0 self,
data: &'life1 FixedSizeListArray
) -> Pin<Box<dyn Future<Output = Result<UInt32Array>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Compute the partitions for each vector in the input data. Read more
source§fn compute_residual<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
original: &'life1 FixedSizeListArray,
partitions: Option<&'life2 UInt32Array>
) -> Pin<Box<dyn Future<Output = Result<FixedSizeListArray>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn compute_residual<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
original: &'life1 FixedSizeListArray,
partitions: Option<&'life2 UInt32Array>
) -> Pin<Box<dyn Future<Output = Result<FixedSizeListArray>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Compute residual vector. Read more
source§fn find_partitions(
&self,
query: &dyn Array,
nprobes: usize
) -> Result<UInt32Array>
fn find_partitions( &self, query: &dyn Array, nprobes: usize ) -> Result<UInt32Array>
Find the closest partitions for the query vector.
source§fn partition_transform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
batch: &'life1 RecordBatch,
column: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<RecordBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn partition_transform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
batch: &'life1 RecordBatch,
column: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<RecordBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Partition a batch of vectors into multiple batches, each batch contains vectors and other data. Read more
Auto Trait Implementations§
impl<T> !RefUnwindSafe for IvfImpl<T>
impl<T> Send for IvfImpl<T>
impl<T> Sync for IvfImpl<T>
impl<T> Unpin for IvfImpl<T>
impl<T> !UnwindSafe for IvfImpl<T>
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