[−][src]Struct differential_dataflow::operators::arrange::writer::TraceWriter
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.
Methods
impl<Tr> TraceWriter<Tr> where
Tr: Trace,
Tr::Time: Lattice + Ord + Clone + Debug + 'static,
Tr::Batch: Batch<Tr::Key, Tr::Val, Tr::Time, Tr::R>, [src]
Tr: Trace,
Tr::Time: Lattice + Ord + Clone + Debug + 'static,
Tr::Batch: Batch<Tr::Key, Tr::Val, Tr::Time, Tr::R>,
pub fn new(
upper: Vec<Tr::Time>,
trace: Weak<RefCell<TraceBox<Tr>>>,
queues: Rc<RefCell<Vec<Weak<(Activator, RefCell<VecDeque<TraceReplayInstruction<Tr>>>)>>>>
) -> Self[src]
upper: Vec<Tr::Time>,
trace: Weak<RefCell<TraceBox<Tr>>>,
queues: Rc<RefCell<Vec<Weak<(Activator, RefCell<VecDeque<TraceReplayInstruction<Tr>>>)>>>>
) -> Self
Creates a new TraceWriter.
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: &[Tr::Time])[src]
Inserts an empty batch up to upper.
Trait Implementations
impl<Tr> Drop for TraceWriter<Tr> where
Tr: Trace,
Tr::Time: Lattice + Ord + Clone + Debug + 'static,
Tr::Batch: Batch<Tr::Key, Tr::Val, Tr::Time, Tr::R>, [src]
Tr: Trace,
Tr::Time: Lattice + Ord + Clone + Debug + 'static,
Tr::Batch: Batch<Tr::Key, Tr::Val, Tr::Time, Tr::R>,
Auto Trait Implementations
impl<Tr> !Sync for TraceWriter<Tr>
impl<Tr> Unpin for TraceWriter<Tr> where
Tr: Unpin,
<Tr as TraceReader>::Time: Unpin,
Tr: Unpin,
<Tr as TraceReader>::Time: Unpin,
impl<Tr> !Send for TraceWriter<Tr>
impl<Tr> !RefUnwindSafe for TraceWriter<Tr>
impl<Tr> !UnwindSafe for TraceWriter<Tr>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,