pub struct DeltaBatch<K, V> {
pub epoch: u64,
pub entries: Vec<DeltaEntry<K, V>>,
}Expand description
A batch of delta entries for a single propagation epoch.
Micro-batching amortizes per-delta overhead and enables bulk processing optimizations (e.g., deduplicating multiple updates to the same key within one epoch).
Fields§
§epoch: u64The epoch number (monotonically increasing).
entries: Vec<DeltaEntry<K, V>>The delta entries in this batch, ordered by logical_time.
Implementations§
Source§impl<K: Eq + Hash, V> DeltaBatch<K, V>
impl<K: Eq + Hash, V> DeltaBatch<K, V>
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for DeltaBatch<K, V>
impl<K: Clone, V: Clone> Clone for DeltaBatch<K, V>
Source§fn clone(&self) -> DeltaBatch<K, V>
fn clone(&self) -> DeltaBatch<K, V>
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 moreAuto Trait Implementations§
impl<K, V> Freeze for DeltaBatch<K, V>
impl<K, V> RefUnwindSafe for DeltaBatch<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for DeltaBatch<K, V>
impl<K, V> Sync for DeltaBatch<K, V>
impl<K, V> Unpin for DeltaBatch<K, V>
impl<K, V> UnsafeUnpin for DeltaBatch<K, V>
impl<K, V> UnwindSafe for DeltaBatch<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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