pub struct EncodingOptions {
pub cache_bytes_per_column: u64,
pub max_page_bytes: u64,
pub keep_original_array: bool,
pub buffer_alignment: u64,
}
Expand description
Options that control the encoding process
Fields§
§cache_bytes_per_column: u64
How much data (in bytes) to cache in-memory before writing a page
This cache is applied on a per-column basis
max_page_bytes: u64
The maximum size of a page in bytes, if a single array would create a page larger than this then it will be split into multiple pages
keep_original_array: bool
If false (the default) then arrays will be copied (deeply) before being cached. This ensures any data kept alive by the array can be discarded safely and helps avoid writer accumulation. However, there is an associated cost.
buffer_alignment: u64
The alignment that the writer is applying to buffers
The encoder needs to know this so it figures the position of out-of-line buffers correctly
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncodingOptions
impl RefUnwindSafe for EncodingOptions
impl Send for EncodingOptions
impl Sync for EncodingOptions
impl Unpin for EncodingOptions
impl UnwindSafe for EncodingOptions
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