pub struct SealedBatch {
pub frames: Vec<Bytes>,
pub rows: u64,
pub bytes: u64,
pub dedup_token: String,
}Expand description
A batch sealed by a shard worker, ready to write. Frames concatenate to the full wire payload (a stream of one or more self-describing blocks for block formats like ClickHouse Native).
Fields§
§frames: Vec<Bytes>Encoded frames, in order.
rows: u64Total rows across frames.
bytes: u64Total bytes across frames.
dedup_token: StringDeterministic-within-a-session batch identity. Retries of the same sealed batch — including on other replicas — reuse the same token, so sinks with server-side deduplication windows treat them as idempotent. Crash replay produces different tokens (documented at-least-once semantics).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SealedBatch
impl RefUnwindSafe for SealedBatch
impl Send for SealedBatch
impl Sync for SealedBatch
impl Unpin for SealedBatch
impl UnsafeUnpin for SealedBatch
impl UnwindSafe for SealedBatch
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