pub struct ChunkConfig {
pub target_bytes: usize,
pub encode_policy: ErrorPolicy,
}Expand description
Tuning for the terminal stage’s per-shard chunking.
Fields§
§target_bytes: usizeSeal and send a chunk once its frame reaches this size. Small enough to flow steadily, large enough to amortize queue traffic; sink workers merge chunks into full-size batches, so this does not bound insert sizes.
encode_policy: ErrorPolicyPolicy for record-level encoder failures. Skip drops the record
(metrics-counted); Fail stops the pipeline. An encoder error of
ErrorClass::Fatal stops the pipeline regardless of this policy
— fatal means the component is broken, not the record.
Trait Implementations§
Source§impl Clone for ChunkConfig
impl Clone for ChunkConfig
Source§fn clone(&self) -> ChunkConfig
fn clone(&self) -> ChunkConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChunkConfig
impl Debug for ChunkConfig
Source§impl Default for ChunkConfig
impl Default for ChunkConfig
impl Copy for ChunkConfig
Auto Trait Implementations§
impl Freeze for ChunkConfig
impl RefUnwindSafe for ChunkConfig
impl Send for ChunkConfig
impl Sync for ChunkConfig
impl Unpin for ChunkConfig
impl UnsafeUnpin for ChunkConfig
impl UnwindSafe for ChunkConfig
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