Struct differential_dataflow::operators::arrange::writer::TraceWriter[][src]

pub struct TraceWriter<Tr> where
    Tr: Trace,
    Tr::Time: Lattice + Timestamp + Ord + Clone + Debug + 'static,
    Tr::Batch: Batch<Tr::Key, Tr::Val, Tr::Time, Tr::R>, 
{ /* fields omitted */ }

Write endpoint for a sequence of batches.

A TraceWriter accepts a sequence of batches and distributes them to both a shared trace and to a sequence of private queues.

Implementations

impl<Tr> TraceWriter<Tr> where
    Tr: Trace,
    Tr::Time: Lattice + Timestamp + Ord + Clone + Debug + 'static,
    Tr::Batch: Batch<Tr::Key, Tr::Val, Tr::Time, Tr::R>, 
[src]

pub fn new(
    upper: Vec<Tr::Time>,
    trace: Weak<RefCell<TraceBox<Tr>>>,
    queues: Rc<RefCell<Vec<Weak<(Activator, RefCell<VecDeque<TraceReplayInstruction<Tr>>>)>>>>
) -> Self
[src]

Creates a new TraceWriter.

pub fn exert(&mut self, fuel: &mut isize)[src]

Exerts merge effort, even without additional updates.

pub fn insert(&mut self, batch: Tr::Batch, hint: Option<Tr::Time>)[src]

Advances the trace by batch.

The hint argument is either None in the case of an empty batch, or is Some(time) for a time less or equal to all updates in the batch and which is suitable for use as a capability.

pub fn seal(&mut self, upper: Antichain<Tr::Time>)[src]

Inserts an empty batch up to upper.

Trait Implementations

impl<Tr> Drop for TraceWriter<Tr> where
    Tr: Trace,
    Tr::Time: Lattice + Timestamp + Ord + Clone + Debug + 'static,
    Tr::Batch: Batch<Tr::Key, Tr::Val, Tr::Time, Tr::R>, 
[src]

Auto Trait Implementations

impl<Tr> !RefUnwindSafe for TraceWriter<Tr>

impl<Tr> !Send for TraceWriter<Tr>

impl<Tr> !Sync for TraceWriter<Tr>

impl<Tr> Unpin for TraceWriter<Tr> where
    <Tr as TraceReader>::Time: Unpin

impl<Tr> !UnwindSafe for TraceWriter<Tr>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.