pub struct SourceChunking {
pub max_source_chunk_bytes: NonZeroU64,
pub max_row_groups_per_chunk: NonZeroUsize,
pub max_retry_attempts: NonZeroUsize,
pub min_retry_chunk_row_groups: NonZeroUsize,
}Expand description
Source chunking of native reads. Device capacity always comes from the admitted grant, so a chunking carries no device budget.
Fields§
§max_source_chunk_bytes: NonZeroU64Source bytes planned into one chunk; a planning target.
u64::MAX derives the target from the immutable admitted grant.
max_row_groups_per_chunk: NonZeroUsizeRow groups planned into one chunk.
max_retry_attempts: NonZeroUsizeAttempts a failed chunk read retries with smaller chunks.
min_retry_chunk_row_groups: NonZeroUsizeRow-group floor of a retried chunk.
Implementations§
Source§impl SourceChunking
impl SourceChunking
Sourcepub const DEFAULT_MAX_SOURCE_CHUNK_BYTES: NonZeroU64
pub const DEFAULT_MAX_SOURCE_CHUNK_BYTES: NonZeroU64
Default source-byte setting, without a configured ceiling.
Sourcepub const DEFAULT_MAX_ROW_GROUPS_PER_CHUNK: NonZeroUsize
pub const DEFAULT_MAX_ROW_GROUPS_PER_CHUNK: NonZeroUsize
Default row groups planned into one chunk.
Sourcepub const DEFAULT_MAX_RETRY_ATTEMPTS: NonZeroUsize
pub const DEFAULT_MAX_RETRY_ATTEMPTS: NonZeroUsize
Default retry attempts of a failed chunk read.
Sourcepub const DEFAULT_MIN_RETRY_CHUNK_ROW_GROUPS: NonZeroUsize
pub const DEFAULT_MIN_RETRY_CHUNK_ROW_GROUPS: NonZeroUsize
Default row-group floor of a retried chunk.
Sourcepub fn explicit_max_source_chunk_bytes(&self) -> Option<NonZeroU64>
pub fn explicit_max_source_chunk_bytes(&self) -> Option<NonZeroU64>
The configured source-byte ceiling, or None when the default leaves
the target to the admitted grant.
Trait Implementations§
Source§impl Clone for SourceChunking
impl Clone for SourceChunking
impl Copy for SourceChunking
Source§impl Debug for SourceChunking
impl Debug for SourceChunking
Source§impl Default for SourceChunking
impl Default for SourceChunking
impl Eq for SourceChunking
Source§impl PartialEq for SourceChunking
impl PartialEq for SourceChunking
impl StructuralPartialEq for SourceChunking
Auto Trait Implementations§
impl Freeze for SourceChunking
impl RefUnwindSafe for SourceChunking
impl Send for SourceChunking
impl Sync for SourceChunking
impl Unpin for SourceChunking
impl UnsafeUnpin for SourceChunking
impl UnwindSafe for SourceChunking
Blanket Implementations§
impl<T> Allocation for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request