pub struct MemoryConfig {
pub budget_bytes: usize,
pub temp_directory: PathBuf,
pub spill_threshold: f64,
pub target_partition_bytes: usize,
}Expand description
Configuration for memory-bounded execution
Fields§
§budget_bytes: usizeTotal memory budget for query execution
temp_directory: PathBufDirectory for spill files (defaults to system temp)
spill_threshold: f64Threshold at which to trigger spilling (0.0 - 1.0)
target_partition_bytes: usizeTarget size for each partition in external operators
Implementations§
Source§impl MemoryConfig
impl MemoryConfig
Sourcepub fn with_budget(budget_bytes: usize) -> Self
pub fn with_budget(budget_bytes: usize) -> Self
Create a new configuration with the specified budget
Sourcepub fn with_temp_dir(self, path: PathBuf) -> Self
pub fn with_temp_dir(self, path: PathBuf) -> Self
Create a configuration with a specific temp directory
Sourcepub fn with_spill_threshold(self, threshold: f64) -> Self
pub fn with_spill_threshold(self, threshold: f64) -> Self
Set the spill threshold (0.0 - 1.0)
Trait Implementations§
Source§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§fn clone(&self) -> MemoryConfig
fn clone(&self) -> MemoryConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 MemoryConfig
impl Debug for MemoryConfig
Auto Trait Implementations§
impl Freeze for MemoryConfig
impl RefUnwindSafe for MemoryConfig
impl Send for MemoryConfig
impl Sync for MemoryConfig
impl Unpin for MemoryConfig
impl UnwindSafe for MemoryConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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