pub struct DeltaTableConfig {
pub require_tombstones: bool,
pub require_files: bool,
pub log_buffer_size: usize,
pub log_batch_size: usize,
pub io_runtime: Option<IORuntime>,
}
Expand description
Configuration options for delta table
Fields§
§require_tombstones: bool
Indicates whether our use case requires tracking tombstones.
This defaults to true
Read-only applications never require tombstones. Tombstones are only required when writing checkpoints, so even many writers may want to skip them.
require_files: bool
Indicates whether DeltaTable should track files.
This defaults to true
Some append-only applications might have no need of tracking any files. Hence, DeltaTable will be loaded with significant memory reduction.
log_buffer_size: usize
Controls how many files to buffer from the commit log when updating the table. This defaults to 4 * number of cpus
Setting a value greater than 1 results in concurrent calls to the storage api. This can decrease latency if there are many files in the log since the last checkpoint, but will also increase memory usage. Possible rate limits of the storage backend should also be considered for optimal performance.
log_batch_size: usize
Control the number of records to read / process from the commit / checkpoint files when processing record batches.
io_runtime: Option<IORuntime>
When a runtime handler is provided, all IO tasks are spawn in that handle
Trait Implementations§
Source§impl Clone for DeltaTableConfig
impl Clone for DeltaTableConfig
Source§fn clone(&self) -> DeltaTableConfig
fn clone(&self) -> DeltaTableConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeltaTableConfig
impl Debug for DeltaTableConfig
Source§impl Default for DeltaTableConfig
impl Default for DeltaTableConfig
Source§impl<'de> Deserialize<'de> for DeltaTableConfig
impl<'de> Deserialize<'de> for DeltaTableConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DeltaTableConfig
impl PartialEq for DeltaTableConfig
Auto Trait Implementations§
impl Freeze for DeltaTableConfig
impl !RefUnwindSafe for DeltaTableConfig
impl Send for DeltaTableConfig
impl Sync for DeltaTableConfig
impl Unpin for DeltaTableConfig
impl !UnwindSafe for DeltaTableConfig
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
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>
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>
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