struct FallbackEncoder {
encoder: FallbackEncoderImpl,
num_values: usize,
variable_length_bytes: i64,
}
Expand description
A fallback encoder, i.e. non-dictionary, for ByteArray
Fields§
§encoder: FallbackEncoderImpl
§num_values: usize
§variable_length_bytes: i64
Implementations§
Source§impl FallbackEncoder
impl FallbackEncoder
Sourcefn new(descr: &ColumnDescPtr, props: &WriterProperties) -> Result<Self>
fn new(descr: &ColumnDescPtr, props: &WriterProperties) -> Result<Self>
Create the fallback encoder for the given ColumnDescPtr
and WriterProperties
Sourcefn estimated_data_page_size(&self) -> usize
fn estimated_data_page_size(&self) -> usize
Returns an estimate of the data page size in bytes
This includes: <already_written_encoded_byte_size> + <estimated_encoded_size_of_unflushed_bytes>
fn flush_data_page( &mut self, min_value: Option<ByteArray>, max_value: Option<ByteArray>, ) -> Result<DataPageValues<ByteArray>>
Auto Trait Implementations§
impl Freeze for FallbackEncoder
impl RefUnwindSafe for FallbackEncoder
impl Send for FallbackEncoder
impl Sync for FallbackEncoder
impl Unpin for FallbackEncoder
impl UnwindSafe for FallbackEncoder
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> 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