Struct mz_persist::client::DecodedSnapshot
source · [−]pub struct DecodedSnapshot<K, V> { /* private fields */ }
Expand description
A consistent snapshot of all data currently stored for an id, with keys and vals decoded.
Implementations
sourceimpl<K: Codec, V: Codec> DecodedSnapshot<K, V>
impl<K: Codec, V: Codec> DecodedSnapshot<K, V>
sourcepub fn seqno(&self) -> SeqNo
pub fn seqno(&self) -> SeqNo
Returns the SeqNo at which this snapshot was run.
All writes assigned a seqno < this are included.
sourcepub fn since(&self) -> Antichain<u64>
pub fn since(&self) -> Antichain<u64>
Returns the since frontier of this snapshot.
All updates at times less than this frontier must be forwarded to some time in this frontier.
sourcepub fn get_seal(&self) -> Antichain<u64>
pub fn get_seal(&self) -> Antichain<u64>
A logical upper bound on the times that had been added to the collection when this snapshot was taken
sourcepub fn into_iters(
self,
num_iters: NonZeroUsize
) -> Vec<DecodedSnapshotIter<K, V>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn into_iters(
self,
num_iters: NonZeroUsize
) -> Vec<DecodedSnapshotIter<K, V>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Returns a set of num_iters
Iterators that each output roughly
1/num_iters
of the data represented by this snapshot.
Trait Implementations
Auto Trait Implementations
impl<K, V> !RefUnwindSafe for DecodedSnapshot<K, V>
impl<K, V> Send for DecodedSnapshot<K, V> where
K: Send,
V: Send,
impl<K, V> Sync for DecodedSnapshot<K, V> where
K: Sync,
V: Sync,
impl<K, V> Unpin for DecodedSnapshot<K, V> where
K: Unpin,
V: Unpin,
impl<K, V> !UnwindSafe for DecodedSnapshot<K, V>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FutureExt for T
impl<T> FutureExt for T
sourcefn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourcefn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more