pub struct ChangeTracker { /* private fields */ }Expand description
Change tracking for incremental checkpointing
Implementations§
Source§impl ChangeTracker
impl ChangeTracker
Sourcepub fn track_node_change(&self, node_id: NativeNodeId, lsn: u64)
pub fn track_node_change(&self, node_id: NativeNodeId, lsn: u64)
Track node change
Sourcepub fn track_edge_change(&self, edge_id: NativeEdgeId, lsn: u64)
pub fn track_edge_change(&self, edge_id: NativeEdgeId, lsn: u64)
Track edge change
Sourcepub fn track_cluster_change(&self, cluster_id: i64, lsn: u64)
pub fn track_cluster_change(&self, cluster_id: i64, lsn: u64)
Track cluster change
Sourcepub fn mark_block_dirty(&self, block_id: u64)
pub fn mark_block_dirty(&self, block_id: u64)
Mark block as dirty
Sourcepub fn total_changes(&self) -> u64
pub fn total_changes(&self) -> u64
Get total changes since last checkpoint
Sourcepub fn dirty_block_count(&self) -> usize
pub fn dirty_block_count(&self) -> usize
Get dirty block count
Sourcepub fn clear_changes(&self)
pub fn clear_changes(&self)
Clear all changes (after checkpoint)
Sourcepub fn get_nodes_changed_since(&self, since_lsn: u64) -> Vec<NativeNodeId> ⓘ
pub fn get_nodes_changed_since(&self, since_lsn: u64) -> Vec<NativeNodeId> ⓘ
Get nodes changed since LSN
Sourcepub fn get_edges_changed_since(&self, since_lsn: u64) -> Vec<NativeEdgeId> ⓘ
pub fn get_edges_changed_since(&self, since_lsn: u64) -> Vec<NativeEdgeId> ⓘ
Get edges changed since LSN
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChangeTracker
impl !RefUnwindSafe for ChangeTracker
impl Send for ChangeTracker
impl Sync for ChangeTracker
impl Unpin for ChangeTracker
impl !UnwindSafe for ChangeTracker
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> 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