Skip to main content

MergeBatcher

Struct MergeBatcher 

Source
pub struct MergeBatcher<M: Merger> { /* private fields */ }
Expand description

Creates batches from chunks of sorted, consolidated tuples.

Trait Implementations§

Source§

impl<M> Batcher for MergeBatcher<M>
where M: Merger<Time: Timestamp>,

Source§

fn frontier(&mut self) -> AntichainRef<'_, M::Time>

The frontier of elements remaining after the most recent call to self.seal.

Source§

type Time = <M as Merger>::Time

Times at which batches are formed.
Source§

type Output = <M as Merger>::Chunk

Type produced by the batcher, and also the type it consumes.
Source§

fn new(logger: Option<Logger>, operator_id: usize) -> Self

Allocates a new empty batcher.
Source§

fn seal( &mut self, upper: Antichain<M::Time>, ) -> (Vec<Self::Output>, Description<M::Time>)

Returns all updates not greater or equal to an element of upper, as a sorted and consolidated chain together with the description that bounds them. Read more
Source§

impl<M: Merger> Drop for MergeBatcher<M>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl<M: Merger> PushInto<<M as Merger>::Chunk> for MergeBatcher<M>

Source§

fn push_into(&mut self, chunk: M::Chunk)

Push item into self.

Auto Trait Implementations§

§

impl<M> Freeze for MergeBatcher<M>
where M: Freeze, <M as Merger>::Time: Freeze,

§

impl<M> !RefUnwindSafe for MergeBatcher<M>

§

impl<M> !Send for MergeBatcher<M>

§

impl<M> !Sync for MergeBatcher<M>

§

impl<M> Unpin for MergeBatcher<M>
where M: Unpin, <M as Merger>::Chunk: Unpin, <M as Merger>::Time: Unpin,

§

impl<M> UnsafeUnpin for MergeBatcher<M>
where M: UnsafeUnpin, <M as Merger>::Time: UnsafeUnpin,

§

impl<M> !UnwindSafe for MergeBatcher<M>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<'a, S, T> Semigroup<&'a S> for T
where T: Semigroup<S>,

Source§

fn plus_equals(&mut self, rhs: &&'a S)

The method of std::ops::AddAssign, for types that do not implement AddAssign.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.