Struct lance_index::vector::transform::NormalizeTransformer
source · pub struct NormalizeTransformer { /* private fields */ }Expand description
Normalize Transformer
L2 Normalize each vector.
Implementations§
Trait Implementations§
source§impl Debug for NormalizeTransformer
impl Debug for NormalizeTransformer
source§impl Transformer for NormalizeTransformer
impl Transformer for NormalizeTransformer
source§fn transform<'life0, 'life1, 'async_trait>(
&'life0 self,
batch: &'life1 RecordBatch
) -> Pin<Box<dyn Future<Output = Result<RecordBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn transform<'life0, 'life1, 'async_trait>(
&'life0 self,
batch: &'life1 RecordBatch
) -> Pin<Box<dyn Future<Output = Result<RecordBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Transform a
RecordBatch of vectorsAuto Trait Implementations§
impl Freeze for NormalizeTransformer
impl RefUnwindSafe for NormalizeTransformer
impl Send for NormalizeTransformer
impl Sync for NormalizeTransformer
impl Unpin for NormalizeTransformer
impl UnwindSafe for NormalizeTransformer
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more