Struct lance_file::v2::writer::FileWriterOptions
source · pub struct FileWriterOptions {
pub data_cache_bytes: Option<u64>,
}
Fields§
§data_cache_bytes: Option<u64>
How many bytes to use for buffering column data
When data comes in small batches the writer will buffer column data so that larger pages can be created. This value will be divided evenly across all of the columns. Generally you want this to be at least large enough to match your filesystem’s ideal read size per column.
In some cases you might want this value to be even larger if you have highly compressible data. However, if this is too large, then the writer could require a lot of memory and write performance may suffer if the CPU-expensive encoding falls behind and can’t be interleaved with the I/O expensive flushing.
The default will use 8MiB per column which should be reasonable for most cases.
Trait Implementations§
source§impl Clone for FileWriterOptions
impl Clone for FileWriterOptions
source§fn clone(&self) -> FileWriterOptions
fn clone(&self) -> FileWriterOptions
Returns a copy of the value. Read more
1.0.0 · 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 UnwindSafe for FileWriterOptions
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