Struct mz_persist_client::internal::state::HollowBatch
source · pub struct HollowBatch<T> {
pub desc: Description<T>,
pub parts: Vec<HollowBatchPart>,
pub len: usize,
pub runs: Vec<usize>,
}
Expand description
A Batch but with the updates themselves stored externally.
Fields§
§desc: Description<T>
Describes the times of the updates in the batch.
parts: Vec<HollowBatchPart>
Pointers usable to retrieve the updates.
len: usize
The number of updates in the batch.
runs: Vec<usize>
Runs of sequential sorted batch parts, stored as indices into parts
.
ex.
parts=[p1, p2, p3], runs=[] --> run is [p1, p2, p2]
parts=[p1, p2, p3], runs=[1] --> runs are [p1] and [p2, p3]
parts=[p1, p2, p3], runs=[1, 2] --> runs are [p1], [p2], [p3]
Implementations§
source§impl<T> HollowBatch<T>
impl<T> HollowBatch<T>
pub(crate) fn runs(&self) -> HollowBatchRunIter<'_, T> ⓘ
Trait Implementations§
source§impl<T: Clone> Clone for HollowBatch<T>
impl<T: Clone> Clone for HollowBatch<T>
source§fn clone(&self) -> HollowBatch<T>
fn clone(&self) -> HollowBatch<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for HollowBatch<T>
impl<T: Debug> Debug for HollowBatch<T>
source§impl<T: Ord> Ord for HollowBatch<T>
impl<T: Ord> Ord for HollowBatch<T>
source§impl<T: PartialEq> PartialEq for HollowBatch<T>
impl<T: PartialEq> PartialEq for HollowBatch<T>
source§fn eq(&self, other: &HollowBatch<T>) -> bool
fn eq(&self, other: &HollowBatch<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: Ord> PartialOrd for HollowBatch<T>
impl<T: Ord> PartialOrd for HollowBatch<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T: Timestamp + Codec64> RustType<ProtoHollowBatch> for HollowBatch<T>
impl<T: Timestamp + Codec64> RustType<ProtoHollowBatch> for HollowBatch<T>
source§fn into_proto(&self) -> ProtoHollowBatch
fn into_proto(&self) -> ProtoHollowBatch
Convert a
Self
into a Proto
value.source§fn from_proto(proto: ProtoHollowBatch) -> Result<Self, TryFromProtoError>
fn from_proto(proto: ProtoHollowBatch) -> Result<Self, TryFromProtoError>
source§impl<T: Serialize> Serialize for HollowBatch<T>
impl<T: Serialize> Serialize for HollowBatch<T>
impl<T: Eq> Eq for HollowBatch<T>
impl<T> StructuralEq for HollowBatch<T>
impl<T> StructuralPartialEq for HollowBatch<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for HollowBatch<T>where T: RefUnwindSafe,
impl<T> Send for HollowBatch<T>where T: Send,
impl<T> Sync for HollowBatch<T>where T: Sync,
impl<T> Unpin for HollowBatch<T>where T: Unpin,
impl<T> UnwindSafe for HollowBatch<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Creates a shared type from an unshared type.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PreferredContainer for Twhere
T: Ord + Clone + 'static,
impl<T> PreferredContainer for Twhere T: Ord + Clone + 'static,
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.