pub struct DeltaTableConfig {
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_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§fn default() -> DeltaTableConfig
fn default() -> DeltaTableConfig
Source§impl<'de> Deserialize<'de> for DeltaTableConfig
impl<'de> Deserialize<'de> for DeltaTableConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeltaTableConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeltaTableConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl<K, V> FromIterator<(K, V)> for DeltaTableConfig
impl<K, V> FromIterator<(K, V)> for DeltaTableConfig
Source§fn from_iter<I>(iter: I) -> DeltaTableConfigwhere
I: IntoIterator<Item = (K, V)>,
fn from_iter<I>(iter: I) -> DeltaTableConfigwhere
I: IntoIterator<Item = (K, V)>,
Source§impl PartialEq for DeltaTableConfig
impl PartialEq for DeltaTableConfig
Source§impl Serialize for DeltaTableConfig
impl Serialize for DeltaTableConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryUpdateKey for DeltaTableConfig
impl TryUpdateKey for DeltaTableConfig
Source§fn try_update_key(
&mut self,
key: &str,
v: &str,
) -> Result<Option<()>, DeltaTableError>
fn try_update_key( &mut self, key: &str, v: &str, ) -> Result<Option<()>, DeltaTableError>
Source§fn load_from_environment(&mut self) -> Result<(), DeltaTableError>
fn load_from_environment(&mut self) -> Result<(), DeltaTableError>
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> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Sync + Send + 'static)
fn any_ref(&self) -> &(dyn Any + Sync + Send + 'static)
dyn Any
reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send>
fn as_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send>
Arc<dyn Any>
reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Sync + Send>
fn into_any(self: Box<T>) -> Box<dyn Any + Sync + Send>
Box<dyn Any>
: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
std::any::type_name
, since Any
does not provide it and
Any::type_id
is useless as a debugging aid (its Debug
is just a mess of hex digits).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> DynPartialEq for T
impl<T> DynPartialEq for T
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