pub struct SnapshotIter<K, V, T, D> where
    T: Timestamp + Lattice + Codec64,
    K: Debug + Codec,
    V: Debug + Codec,
    D: Semigroup + Codec64 + Send + Sync
{ handle: ReadHandle<K, V, T, D>, as_of: Antichain<T>, batches: Vec<(PartialBlobKey, Description<T>)>, _phantom: PhantomData<(K, V, T, D)>, }
Expand description

An iterator over one split of a “snapshot” (the contents of a shard as of some frontier).

See ReadHandle::snapshot for details.

Fields

handle: ReadHandle<K, V, T, D>as_of: Antichain<T>batches: Vec<(PartialBlobKey, Description<T>)>_phantom: PhantomData<(K, V, T, D)>

Implementations

The frontier at which we’re outputting the contents of the shard.

Attempt to pull out the next values of this iterator.

All times emitted will have been advanced by the Self::as_of frontier.

The returned updates are not consolidated. In the presence of compaction, consolidation can take an unbounded amount of memory so it’s not safe for persist to consolidate in the general case. Persist users that know they are dealing with a small amount of data are free to consolidate this themselves. See differential_dataflow::consolidation::consolidate_updates.

An None value is returned if this iterator is exhausted.

Politely expires this iterator, releasing its lease.

There is a best-effort impl in Drop to expire a iterator that wasn’t explictly expired with this method. When possible, explicit expiry is still preferred because the Drop one is best effort and is dependant on a tokio Handle being available in the TLC at the time of drop (which is a bit subtle). Also, explicit expiry allows for control over when it happens.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more