pub struct MergeBatcher<U: Update> { /* private fields */ }Expand description
Creates batches from chunks of sorted, consolidated columnar updates.
Implementations§
Source§impl<U: Update> MergeBatcher<U>
impl<U: Update> MergeBatcher<U>
Sourcepub fn set_spill_policy(
&mut self,
policy: Box<dyn SpillPolicy<UpdatesTyped<U>>>,
)
pub fn set_spill_policy( &mut self, policy: Box<dyn SpillPolicy<UpdatesTyped<U>>>, )
Install a spill policy. Consulted after each chain insert.
Sourcepub fn resident_records(&self) -> usize
pub fn resident_records(&self) -> usize
Sum of records currently held in Entry::Typed chunks across all
chains. Entry::Paged entries are excluded — they live on backing
storage, not in the process heap. Spill policies bound this quantity;
RSS may still grow due to materialize-on-merge.
Trait Implementations§
Source§impl<U: Update<Time: Timestamp>> Batcher for MergeBatcher<U>
impl<U: Update<Time: Timestamp>> Batcher for MergeBatcher<U>
Source§fn frontier(&mut self) -> AntichainRef<'_, U::Time>
fn frontier(&mut self) -> AntichainRef<'_, U::Time>
The frontier of elements remaining after the most recent call to self.seal.
Source§type Time = <U as ColumnarUpdate>::Time
type Time = <U as ColumnarUpdate>::Time
Times at which batches are formed.
Source§type Output = UpdatesTyped<U>
type Output = UpdatesTyped<U>
Type produced by the batcher, and also the type it consumes.
Source§impl<U: Update> PushInto<UpdatesTyped<U>> for MergeBatcher<U>
impl<U: Update> PushInto<UpdatesTyped<U>> for MergeBatcher<U>
Source§fn push_into(&mut self, chunk: UpdatesTyped<U>)
fn push_into(&mut self, chunk: UpdatesTyped<U>)
Push item into self.
Auto Trait Implementations§
impl<U> Freeze for MergeBatcher<U>
impl<U> !RefUnwindSafe for MergeBatcher<U>
impl<U> !Send for MergeBatcher<U>
impl<U> !Sync for MergeBatcher<U>
impl<U> Unpin for MergeBatcher<U>where
<U as ColumnarUpdate>::Time: Unpin,
<<U as ColumnarUpdate>::Key as Columnar>::Container: Unpin,
<<U as ColumnarUpdate>::Val as Columnar>::Container: Unpin,
<<U as ColumnarUpdate>::Time as Columnar>::Container: Unpin,
<<U as ColumnarUpdate>::Diff as Columnar>::Container: Unpin,
impl<U> UnsafeUnpin for MergeBatcher<U>
impl<U> !UnwindSafe for MergeBatcher<U>
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> 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<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign, for types that do not implement AddAssign.