Struct datafusion::execution::runtime_env::RuntimeConfig
source · [−]pub struct RuntimeConfig {
pub batch_size: usize,
pub disk_manager: DiskManagerConfig,
pub memory_manager: MemoryManagerConfig,
}
Expand description
Execution runtime configuration
Fields
batch_size: usize
Default batch size while creating new batches, it’s especially useful for buffer-in-memory batches since creating tiny batches would results in too much metadata memory consumption.
disk_manager: DiskManagerConfig
DiskManager to manage temporary disk file usage
memory_manager: MemoryManagerConfig
MemoryManager to limit access to memory
Implementations
sourceimpl RuntimeConfig
impl RuntimeConfig
sourcepub fn with_batch_size(self, n: usize) -> Self
pub fn with_batch_size(self, n: usize) -> Self
Customize batch size
sourcepub fn with_disk_manager(self, disk_manager: DiskManagerConfig) -> Self
pub fn with_disk_manager(self, disk_manager: DiskManagerConfig) -> Self
Customize disk manager
sourcepub fn with_memory_manager(self, memory_manager: MemoryManagerConfig) -> Self
pub fn with_memory_manager(self, memory_manager: MemoryManagerConfig) -> Self
Customize memory manager
Trait Implementations
sourceimpl Clone for RuntimeConfig
impl Clone for RuntimeConfig
sourcefn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl !UnwindSafe for RuntimeConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more