pub struct TraceEnter<Tr: TraceReader, TInner, F, G> { /* private fields */ }
Expand description

Wrapper to provide trace to nested scope.

Each wrapped update is presented with a timestamp determined by logic.

At the same time, we require a method prior that can “invert” timestamps, and which will be applied to compaction frontiers as they are communicated back to the wrapped traces. A better explanation is pending, and until that happens use this construct at your own peril!

Implementations§

source§

impl<Tr, TInner, F, G> TraceEnter<Tr, TInner, F, G>
where Tr: TraceReader, TInner: Refines<Tr::Time> + Lattice,

source

pub fn make_from(trace: Tr, logic: F, prior: G) -> Self

Makes a new trace wrapper

Trait Implementations§

source§

impl<Tr, TInner, F, G> Clone for TraceEnter<Tr, TInner, F, G>
where Tr: TraceReader + Clone, F: Clone, G: Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Tr, TInner, F, G> TraceReader for TraceEnter<Tr, TInner, F, G>
where Tr: TraceReader, Tr::Batch: Clone, TInner: Refines<Tr::Time> + Lattice, F: 'static + FnMut(Tr::Key<'_>, Tr::Val<'_>, Tr::TimeGat<'_>) -> TInner + Clone, G: FnMut(&TInner) -> Tr::Time + Clone + 'static,

§

type Key<'a> = <Tr as TraceReader>::Key<'a>

Key by which updates are indexed.
§

type Val<'a> = <Tr as TraceReader>::Val<'a>

Values associated with keys.
§

type Time = TInner

Timestamps associated with updates
§

type TimeGat<'a> = &'a TInner

Borrowed form of timestamp.
§

type Diff = <Tr as TraceReader>::Diff

Owned form of update difference.
§

type DiffGat<'a> = <Tr as TraceReader>::DiffGat<'a>

Borrowed form of update difference.
§

type Batch = BatchEnter<<Tr as TraceReader>::Batch, TInner, F>

The type of an immutable collection of updates.
§

type Storage = <Tr as TraceReader>::Storage

Storage type for Self::Cursor. Likely related to Self::Batch.
§

type Cursor = CursorEnter<<Tr as TraceReader>::Cursor, TInner, F>

The type used to enumerate the collections contents.
source§

fn map_batches<F2: FnMut(&Self::Batch)>(&self, f: F2)

Maps logic across the non-empty sequence of batches in the trace. Read more
source§

fn set_logical_compaction(&mut self, frontier: AntichainRef<'_, TInner>)

Advances the frontier that constrains logical compaction. Read more
source§

fn get_logical_compaction(&mut self) -> AntichainRef<'_, TInner>

Reports the logical compaction frontier. Read more
source§

fn set_physical_compaction(&mut self, frontier: AntichainRef<'_, TInner>)

Advances the frontier that constrains physical compaction. Read more
source§

fn get_physical_compaction(&mut self) -> AntichainRef<'_, TInner>

Reports the physical compaction frontier. Read more
source§

fn cursor_through( &mut self, upper: AntichainRef<'_, TInner>, ) -> Option<(Self::Cursor, Self::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
source§

fn cursor(&mut self) -> (Self::Cursor, Self::Storage)

Provides a cursor over updates contained in the trace.
source§

fn advance_by(&mut self, frontier: AntichainRef<'_, Self::Time>)

👎Deprecated since 0.11: please use set_logical_compaction
Deprecated form of set_logical_compaction.
source§

fn advance_frontier(&mut self) -> AntichainRef<'_, Self::Time>

👎Deprecated since 0.11: please use get_logical_compaction
Deprecated form of get_logical_compaction.
source§

fn distinguish_since(&mut self, frontier: AntichainRef<'_, Self::Time>)

👎Deprecated since 0.11: please use set_physical_compaction
Deprecated form of set_physical_compaction.
source§

fn distinguish_frontier(&mut self) -> AntichainRef<'_, Self::Time>

👎Deprecated since 0.11: please use get_physical_compaction
Deprecated form of get_physical_compaction.
source§

fn read_upper(&mut self, target: &mut Antichain<Self::Time>)

Reads the upper frontier of committed times.
source§

fn advance_upper(&mut self, upper: &mut Antichain<Self::Time>)

Advances upper by any empty batches. Read more

Auto Trait Implementations§

§

impl<Tr, TInner, F, G> Freeze for TraceEnter<Tr, TInner, F, G>
where Tr: Freeze, F: Freeze, G: Freeze, <Tr as TraceReader>::Time: Freeze, TInner: Freeze,

§

impl<Tr, TInner, F, G> RefUnwindSafe for TraceEnter<Tr, TInner, F, G>

§

impl<Tr, TInner, F, G> Send for TraceEnter<Tr, TInner, F, G>
where Tr: Send, F: Send, G: Send, TInner: Send,

§

impl<Tr, TInner, F, G> Sync for TraceEnter<Tr, TInner, F, G>
where Tr: Sync, F: Sync, G: Sync, <Tr as TraceReader>::Time: Sync, TInner: Sync,

§

impl<Tr, TInner, F, G> Unpin for TraceEnter<Tr, TInner, F, G>
where Tr: Unpin, F: Unpin, G: Unpin, <Tr as TraceReader>::Time: Unpin, TInner: Unpin,

§

impl<Tr, TInner, F, G> UnwindSafe for TraceEnter<Tr, TInner, F, G>

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> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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<'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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.
source§

impl<T> Data for T
where T: Clone + 'static,