pub struct CatalogReplay {
pub tables: BTreeMap<Symbol, CatalogTableSpec>,
pub events: Vec<CatalogReplayEvent>,
pub epoch: u64,
}Expand description
A replayable log of catalog events plus the table specs and epoch needed to
rebuild a CatalogStore deterministically.
Fields§
§tables: BTreeMap<Symbol, CatalogTableSpec>Table specs the replay installs.
events: Vec<CatalogReplayEvent>Ordered events to replay.
epoch: u64Final catalog epoch after replay.
Implementations§
Source§impl CatalogReplay
impl CatalogReplay
Sourcepub fn from_snapshot(snapshot: &CatalogSnapshot) -> Self
pub fn from_snapshot(snapshot: &CatalogSnapshot) -> Self
Builds a replay log from snapshot’s rows and sequences.
Trait Implementations§
Source§impl Clone for CatalogReplay
impl Clone for CatalogReplay
Source§fn clone(&self) -> CatalogReplay
fn clone(&self) -> CatalogReplay
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CatalogReplay
impl Debug for CatalogReplay
impl Eq for CatalogReplay
Source§impl PartialEq for CatalogReplay
impl PartialEq for CatalogReplay
Source§fn eq(&self, other: &CatalogReplay) -> bool
fn eq(&self, other: &CatalogReplay) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CatalogReplay
Auto Trait Implementations§
impl Freeze for CatalogReplay
impl RefUnwindSafe for CatalogReplay
impl Send for CatalogReplay
impl Sync for CatalogReplay
impl Unpin for CatalogReplay
impl UnsafeUnpin for CatalogReplay
impl UnwindSafe for CatalogReplay
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