pub struct MoveCounts {
pub subjects: BTreeMap<String, u64>,
pub rows: BTreeMap<String, u64>,
pub left_behind: BTreeMap<String, u64>,
pub ann_log_appended: u64,
}Expand description
What a move did, per route and per table.
left_behind is not an error column. A per-namespace aggregate with no
subject cannot be split across a partitioning move, so it stays, and the
caller is told rather than left to discover it.
Fields§
§subjects: BTreeMap<String, u64>Subjects moved, keyed by the rendered route key. A routed class with no rows appears here with zero — that is what makes the map verifiable by its caller, and what makes the same map re-runnable against each backend of a split store.
rows: BTreeMap<String, u64>Rows written, keyed by table. Derived rows appear here and in no route.
left_behind: BTreeMap<String, u64>Rows left where they were, keyed by table, with the reason in the docs above rather than in the data.
ann_log_appended: u64Entries appended to ann_write_log under the target namespaces.
Trait Implementations§
Source§impl Clone for MoveCounts
impl Clone for MoveCounts
Source§impl Debug for MoveCounts
impl Debug for MoveCounts
Source§impl Default for MoveCounts
impl Default for MoveCounts
impl Eq for MoveCounts
Source§impl PartialEq for MoveCounts
impl PartialEq for MoveCounts
impl StructuralPartialEq for MoveCounts
Auto Trait Implementations§
impl Freeze for MoveCounts
impl RefUnwindSafe for MoveCounts
impl Send for MoveCounts
impl Sync for MoveCounts
impl Unpin for MoveCounts
impl UnsafeUnpin for MoveCounts
impl UnwindSafe for MoveCounts
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more