pub struct ClusterAffinityOptimizer { /* private fields */ }Expand description
Cluster-affinity optimizer for WAL record organization
Implementations§
Source§impl ClusterAffinityOptimizer
impl ClusterAffinityOptimizer
Sourcepub fn add_record(&mut self, record: V2WALRecord)
pub fn add_record(&mut self, record: V2WALRecord)
Add a record to cluster organization
Sourcepub fn get_cluster_records(
&mut self,
cluster_key: i64,
) -> Option<Vec<V2WALRecord>>
pub fn get_cluster_records( &mut self, cluster_key: i64, ) -> Option<Vec<V2WALRecord>>
Get organized records for a specific cluster
Sourcepub fn get_stats(&self) -> ClusterAffinityStats
pub fn get_stats(&self) -> ClusterAffinityStats
Get cluster affinity statistics
Auto Trait Implementations§
impl Freeze for ClusterAffinityOptimizer
impl RefUnwindSafe for ClusterAffinityOptimizer
impl Send for ClusterAffinityOptimizer
impl Sync for ClusterAffinityOptimizer
impl Unpin for ClusterAffinityOptimizer
impl UnwindSafe for ClusterAffinityOptimizer
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