Struct datafusion::execution::runtime_env::RuntimeConfig
source · [−]pub struct RuntimeConfig {
pub disk_manager: DiskManagerConfig,
pub memory_manager: MemoryManagerConfig,
pub object_store_registry: Arc<ObjectStoreRegistry>,
}
Expand description
Execution runtime configuration
Fields
disk_manager: DiskManagerConfig
DiskManager to manage temporary disk file usage
memory_manager: MemoryManagerConfig
MemoryManager to limit access to memory
object_store_registry: Arc<ObjectStoreRegistry>
ObjectStoreRegistry to get object store based on url
Implementations
sourceimpl RuntimeConfig
impl RuntimeConfig
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
sourcepub fn with_object_store_registry(
self,
object_store_registry: Arc<ObjectStoreRegistry>
) -> Self
pub fn with_object_store_registry(
self,
object_store_registry: Arc<ObjectStoreRegistry>
) -> Self
Customize object store registry
sourcepub fn with_memory_limit(self, max_memory: usize, memory_fraction: f64) -> Self
pub fn with_memory_limit(self, max_memory: usize, memory_fraction: f64) -> Self
Specify the total memory to use while running the DataFusion
plan to max_memory * memory_fraction
in bytes.
Note DataFusion does not yet respect this limit in all cases.
sourcepub fn with_temp_file_path(self, path: impl Into<PathBuf>) -> Self
pub fn with_temp_file_path(self, path: impl Into<PathBuf>) -> Self
Use the specified path to create any needed temporary files
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
sourceimpl Default for RuntimeConfig
impl Default for RuntimeConfig
sourcefn default() -> RuntimeConfig
fn default() -> RuntimeConfig
Returns the “default value” for a type. 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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more