pub struct Rebalancer { /* private fields */ }Implementations§
Source§impl Rebalancer
impl Rebalancer
pub fn new(manager: Arc<SegmentManager>) -> Self
pub fn with_threshold( manager: Arc<SegmentManager>, slow_threshold_pct: f64, ) -> Self
pub fn with_config( manager: Arc<SegmentManager>, slow_threshold_pct: f64, min_segment_size: u64, max_segments: usize, ) -> Self
pub fn check_and_rebalance(&self) -> Vec<usize>
pub fn check_and_rebalance_with_bdp(&self, bdp: Option<u64>) -> Vec<usize>
pub fn optimal_segments_from_bdp(&self, bdp: u64, file_size: u64) -> usize
Auto Trait Implementations§
impl Freeze for Rebalancer
impl !RefUnwindSafe for Rebalancer
impl Send for Rebalancer
impl Sync for Rebalancer
impl Unpin for Rebalancer
impl !UnwindSafe for Rebalancer
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