Struct differential_dataflow::operators::arrange::writer::TraceWriter [−][src]
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]
Tr: Trace,
Tr::Time: Lattice + Timestamp + 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 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]
Tr: Trace,
Tr::Time: Lattice + Timestamp + Ord + Clone + Debug + 'static,
Tr::Batch: Batch<Tr::Key, Tr::Val, Tr::Time, Tr::R>,
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,
<Tr as TraceReader>::Time: Unpin,
impl<Tr> !UnwindSafe for TraceWriter<Tr>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,