Struct lance_encoding::encodings::logical::binary::BinaryFieldEncoder
source · pub struct BinaryFieldEncoder { /* private fields */ }Expand description
An encoder which encodes string arrays as List
Implementations§
Trait Implementations§
source§impl FieldEncoder for BinaryFieldEncoder
impl FieldEncoder for BinaryFieldEncoder
source§fn maybe_encode(&mut self, array: ArrayRef) -> Result<Vec<EncodeTask>>
fn maybe_encode(&mut self, array: ArrayRef) -> Result<Vec<EncodeTask>>
Buffer the data and, if there is enough data in the buffer to form a page, return
an encoding task to encode the data. Read more
source§fn flush(&mut self) -> Result<Vec<EncodeTask>>
fn flush(&mut self) -> Result<Vec<EncodeTask>>
Flush any remaining data from the buffers into encoding tasks Read more
source§fn num_columns(&self) -> u32
fn num_columns(&self) -> u32
The number of output columns this encoding will create
Auto Trait Implementations§
impl Freeze for BinaryFieldEncoder
impl !RefUnwindSafe for BinaryFieldEncoder
impl Send for BinaryFieldEncoder
impl !Sync for BinaryFieldEncoder
impl Unpin for BinaryFieldEncoder
impl !UnwindSafe for BinaryFieldEncoder
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