pub struct SorterConfig { /* private fields */ }Expand description
Process-lifetime caps for the Sorter’s planner.
Implementations§
Source§impl SorterConfig
impl SorterConfig
Sourcepub fn from_fd_limit(soft_fd_limit: u32) -> Self
pub fn from_fd_limit(soft_fd_limit: u32) -> Self
Derive caps from the process’s soft file-descriptor limit, clamping the per-sort fan-in ceiling so it can never approach the limit even before the live snapshot rations it further.
Sourcepub fn in_memory_ceiling_bytes(&self) -> u64
pub fn in_memory_ceiling_bytes(&self) -> u64
In-memory ceiling in bytes.
Sourcepub fn max_fan_in(&self) -> u32
pub fn max_fan_in(&self) -> u32
Hard cap on concurrently-open merge readers per sort.
Sourcepub fn max_concurrent_external(&self) -> u32
pub fn max_concurrent_external(&self) -> u32
Cap on concurrent external sorts in the process.
Sourcepub fn fd_safety_margin(&self) -> u32
pub fn fd_safety_margin(&self) -> u32
File descriptors reserved for non-sort work.
Sourcepub fn min_run_buffer_bytes(&self) -> u64
pub fn min_run_buffer_bytes(&self) -> u64
Floor for a spill run buffer.
Sourcepub fn max_run_buffer_bytes(&self) -> u64
pub fn max_run_buffer_bytes(&self) -> u64
Ceiling for a spill run buffer.
Trait Implementations§
Source§impl Clone for SorterConfig
impl Clone for SorterConfig
Source§fn clone(&self) -> SorterConfig
fn clone(&self) -> SorterConfig
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 SorterConfig
impl Debug for SorterConfig
Auto Trait Implementations§
impl Freeze for SorterConfig
impl RefUnwindSafe for SorterConfig
impl Send for SorterConfig
impl Sync for SorterConfig
impl Unpin for SorterConfig
impl UnsafeUnpin for SorterConfig
impl UnwindSafe for SorterConfig
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