pub struct FileWriterOptions {
pub data_cache_bytes: Option<u64>,
pub max_page_bytes: Option<u64>,
pub keep_original_array: Option<bool>,
}Expand description
Runtime options shared by all current-format writers.
These options control buffering and execution only. Select the file grammar
by constructing a writer under crate::versions.
Fields§
§data_cache_bytes: Option<u64>How many bytes to use for buffering column data.
The budget is divided evenly across columns. The default is 8 MiB per column.
max_page_bytes: Option<u64>A best-effort maximum encoded page size.
keep_original_array: Option<bool>Keep input arrays instead of copying buffered slices.
Do not enable this for arrays arriving through the Arrow C data interface because a small child array can keep an entire batch alive.
Trait Implementations§
Source§impl Clone for FileWriterOptions
impl Clone for FileWriterOptions
Source§fn clone(&self) -> FileWriterOptions
fn clone(&self) -> FileWriterOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileWriterOptions
impl Debug for FileWriterOptions
Source§impl Default for FileWriterOptions
impl Default for FileWriterOptions
Source§fn default() -> FileWriterOptions
fn default() -> FileWriterOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileWriterOptions
impl RefUnwindSafe for FileWriterOptions
impl Send for FileWriterOptions
impl Sync for FileWriterOptions
impl Unpin for FileWriterOptions
impl UnsafeUnpin for FileWriterOptions
impl UnwindSafe for FileWriterOptions
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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