pub struct SourceTuning {
pub batch_size: usize,
pub batch_size_memory_mb: Option<usize>,
pub throttle_ms: u64,
pub statement_timeout_s: u64,
pub max_retries: u32,
pub retry_backoff_ms: u64,
pub lock_timeout_s: u64,
pub memory_threshold_mb: usize,
/* private fields */
}Fields§
§batch_size: usize§batch_size_memory_mb: Option<usize>§throttle_ms: u64§statement_timeout_s: u64§max_retries: u32§retry_backoff_ms: u64§lock_timeout_s: u64§memory_threshold_mb: usizeImplementations§
Source§impl SourceTuning
impl SourceTuning
pub fn from_config(config: Option<&TuningConfig>) -> Self
pub fn profile_name(&self) -> &'static str
Source§impl SourceTuning
impl SourceTuning
Sourcepub fn effective_batch_size(&self, schema: Option<&SchemaRef>) -> usize
pub fn effective_batch_size(&self, schema: Option<&SchemaRef>) -> usize
If batch_size_memory_mb is set, compute and return an adjusted batch_size
from the schema; otherwise return the configured batch_size.
Trait Implementations§
Source§impl Clone for SourceTuning
impl Clone for SourceTuning
Source§fn clone(&self) -> SourceTuning
fn clone(&self) -> SourceTuning
Returns a duplicate 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 SourceTuning
impl Debug for SourceTuning
Auto Trait Implementations§
impl Freeze for SourceTuning
impl RefUnwindSafe for SourceTuning
impl Send for SourceTuning
impl Sync for SourceTuning
impl Unpin for SourceTuning
impl UnsafeUnpin for SourceTuning
impl UnwindSafe for SourceTuning
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> 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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.