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: i64Implementations§
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 UnsafeUnpin 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