Struct mz_persist::indexed::encoding::ArrangementMeta
source · [−]pub struct ArrangementMeta {
pub id: Id,
pub seal: Antichain<u64>,
pub since: Antichain<u64>,
pub unsealed_batches: Vec<UnsealedBatchMeta>,
pub trace_batches: Vec<TraceBatchMeta>,
}
Expand description
The metadata necessary to reconstruct an Arrangement.
Invariants:
- The unsealed_batch SeqNo ranges are sorted and non-overlapping.
- The trace_batch Descriptions are sorted, non-overlapping, and contiguous.
- Every batch’s since frontier is <= the overall trace’s since frontier.
- The compaction level of trace_batches is weakly decreasing when iterating from oldest to most recent time intervals.
- Every trace_batch’s upper is <= the overall trace’s seal frontier.
Fields
id: Id
The stream this unsealed belongs to.
seal: Antichain<u64>
Frontier this trace has been sealed up to.
since: Antichain<u64>
Compaction frontier for the batches contained in this trace. There may still be batches containing updates at times < since, but the the trace only contains correct answers for times at or in advance of this of this frontier. Readers are expected to advance any updates < since to since.
unsealed_batches: Vec<UnsealedBatchMeta>
The batches that make up the Unsealed.
trace_batches: Vec<TraceBatchMeta>
The batches that make up the Trace.
Implementations
sourceimpl ArrangementMeta
impl ArrangementMeta
sourcepub fn new(id: Id) -> Self
pub fn new(id: Id) -> Self
Create a new ArrangementMeta belonging to id
.
sourcepub fn validate(&self) -> Result<(), Error>
pub fn validate(&self) -> Result<(), Error>
Asserts Self’s documented invariants, returning an error if any are violated.
sourcepub fn unsealed_seqno_upper(&self) -> SeqNo
pub fn unsealed_seqno_upper(&self) -> SeqNo
Returns an open upper bound on the seqnos contained in this unsealed.
sourcepub fn trace_ts_upper(&self) -> Antichain<u64>
pub fn trace_ts_upper(&self) -> Antichain<u64>
Returns an open upper bound on the timestamps of data contained in this trace.
Trait Implementations
sourceimpl Clone for ArrangementMeta
impl Clone for ArrangementMeta
sourcefn clone(&self) -> ArrangementMeta
fn clone(&self) -> ArrangementMeta
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ArrangementMeta
impl Debug for ArrangementMeta
sourceimpl Default for ArrangementMeta
impl Default for ArrangementMeta
sourceimpl From<&'_ ArrangementMeta> for ProtoArrangement
impl From<&'_ ArrangementMeta> for ProtoArrangement
sourcefn from(x: &ArrangementMeta) -> Self
fn from(x: &ArrangementMeta) -> Self
Converts to this type from the input type.
sourceimpl From<(u64, ProtoArrangement)> for ArrangementMeta
impl From<(u64, ProtoArrangement)> for ArrangementMeta
sourceimpl PartialEq<ArrangementMeta> for ArrangementMeta
impl PartialEq<ArrangementMeta> for ArrangementMeta
sourcefn eq(&self, other: &ArrangementMeta) -> bool
fn eq(&self, other: &ArrangementMeta) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ArrangementMeta) -> bool
fn ne(&self, other: &ArrangementMeta) -> bool
This method tests for !=
.
impl Eq for ArrangementMeta
impl StructuralEq for ArrangementMeta
impl StructuralPartialEq for ArrangementMeta
Auto Trait Implementations
impl RefUnwindSafe for ArrangementMeta
impl Send for ArrangementMeta
impl Sync for ArrangementMeta
impl Unpin for ArrangementMeta
impl UnwindSafe for ArrangementMeta
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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
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> ProgressEventTimestamp for T where
T: Data + Debug + Any,
impl<T> ProgressEventTimestamp for T where
T: Data + Debug + Any,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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