Struct differential_dataflow::trace::implementations::spine_fueled::Spine [−][src]
An append-only collection of update tuples.
A spine maintains a small number of immutable collections of update tuples, merging the collections when two have similar sizes. In this way, it allows the addition of more tuples, which may then be merged with other immutable collections.
Methods
impl<K, V, T, R, B> Spine<K, V, T, R, B> where
K: Ord + Clone,
V: Ord + Clone,
T: Lattice + Ord + Clone + Debug,
R: Diff,
B: Batch<K, V, T, R>, [src]
impl<K, V, T, R, B> Spine<K, V, T, R, B> where
K: Ord + Clone,
V: Ord + Clone,
T: Lattice + Ord + Clone + Debug,
R: Diff,
B: Batch<K, V, T, R>, pub fn with_effort(
effort: usize,
operator: OperatorInfo,
logger: Option<Logger>
) -> Self[src]
pub fn with_effort(
effort: usize,
operator: OperatorInfo,
logger: Option<Logger>
) -> SelfAllocates a fueled Spine with a specified effort multiplier.
This trace will merge batches progressively, with each inserted batch applying a multiple
of the batch's length in effort to each merge. The effort parameter is that multiplier.
This value should be at least one for the merging to happen; a value of zero is not helpful.
Trait Implementations
impl<K, V, T, R, B> TraceReader<K, V, T, R> for Spine<K, V, T, R, B> where
K: Ord + Clone,
V: Ord + Clone,
T: Lattice + Ord + Clone + Debug,
R: Diff,
B: Batch<K, V, T, R> + Clone + 'static, [src]
impl<K, V, T, R, B> TraceReader<K, V, T, R> for Spine<K, V, T, R, B> where
K: Ord + Clone,
V: Ord + Clone,
T: Lattice + Ord + Clone + Debug,
R: Diff,
B: Batch<K, V, T, R> + Clone + 'static, type Batch = B
The type of an immutable collection of updates.
type Cursor = CursorList<K, V, T, R, <B as BatchReader<K, V, T, R>>::Cursor>
The type used to enumerate the collections contents.
fn cursor_through(
&mut self,
upper: &[T]
) -> Option<(Self::Cursor, <Self::Cursor as Cursor<K, V, T, R>>::Storage)>[src]
fn cursor_through(
&mut self,
upper: &[T]
) -> Option<(Self::Cursor, <Self::Cursor as Cursor<K, V, T, R>>::Storage)>Acquires a cursor to the restriction of the collection's contents to updates at times not greater or equal to an element of upper. Read more
fn advance_by(&mut self, frontier: &[T])[src]
fn advance_by(&mut self, frontier: &[T])Advances the frontier of times the collection must be correctly accumulable through. Read more
fn advance_frontier(&mut self) -> &[T][src]
fn advance_frontier(&mut self) -> &[T]Reports the frontier from which all time comparisions should be accurate. Read more
fn distinguish_since(&mut self, frontier: &[T])[src]
fn distinguish_since(&mut self, frontier: &[T])Advances the frontier that may be used in cursor_through. Read more
fn distinguish_frontier(&mut self) -> &[T][src]
fn distinguish_frontier(&mut self) -> &[T]Reports the frontier from which the collection may be subsetted. Read more
fn map_batches<F: FnMut(&Self::Batch)>(&mut self, f: F)[src]
fn map_batches<F: FnMut(&Self::Batch)>(&mut self, f: F)Maps some logic across the batches the collection manages. Read more
fn cursor(
&mut self
) -> (Self::Cursor, <Self::Cursor as Cursor<Key, Val, Time, R>>::Storage)[src]
fn cursor(
&mut self
) -> (Self::Cursor, <Self::Cursor as Cursor<Key, Val, Time, R>>::Storage)Provides a cursor over updates contained in the trace.
impl<K, V, T, R, B> Trace<K, V, T, R> for Spine<K, V, T, R, B> where
K: Ord + Clone,
V: Ord + Clone,
T: Lattice + Ord + Clone + Debug,
R: Diff,
B: Batch<K, V, T, R> + Clone + 'static, [src]
impl<K, V, T, R, B> Trace<K, V, T, R> for Spine<K, V, T, R, B> where
K: Ord + Clone,
V: Ord + Clone,
T: Lattice + Ord + Clone + Debug,
R: Diff,
B: Batch<K, V, T, R> + Clone + 'static,