Struct deltalake::DeltaTableLoadOptions
source · pub struct DeltaTableLoadOptions {
pub table_uri: String,
pub storage_backend: Option<(Arc<dyn ObjectStore>, Url)>,
pub version: DeltaVersion,
pub require_tombstones: bool,
pub require_files: bool,
pub log_buffer_size: usize,
pub log_batch_size: usize,
}
Expand description
The deltalake crate is currently just a meta-package shim for deltalake-core Load-time delta table configuration options
Fields§
§table_uri: String
table root uri
storage_backend: Option<(Arc<dyn ObjectStore>, Url)>
backend to access storage system
version: DeltaVersion
specify the version we are going to load: a time stamp, a version, or just the newest available version
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 be helpful to 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.
Implementations§
source§impl DeltaTableLoadOptions
impl DeltaTableLoadOptions
sourcepub fn new(table_uri: impl Into<String>) -> DeltaTableLoadOptions
pub fn new(table_uri: impl Into<String>) -> DeltaTableLoadOptions
create default table load options for a table uri
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeltaTableLoadOptions
impl !RefUnwindSafe for DeltaTableLoadOptions
impl Send for DeltaTableLoadOptions
impl Sync for DeltaTableLoadOptions
impl Unpin for DeltaTableLoadOptions
impl !UnwindSafe for DeltaTableLoadOptions
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> 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