Struct datafusion::execution::runtime_env::RuntimeConfig
source · pub struct RuntimeConfig {
pub disk_manager: DiskManagerConfig,
pub memory_pool: Option<Arc<dyn MemoryPool>>,
pub object_store_registry: Arc<ObjectStoreRegistry>,
}
Expand description
Execution runtime configuration
Fields§
§disk_manager: DiskManagerConfig
DiskManager to manage temporary disk file usage
memory_pool: Option<Arc<dyn MemoryPool>>
MemoryPool
from which to allocate memory
Defaults to using an UnboundedMemoryPool
if None
object_store_registry: Arc<ObjectStoreRegistry>
ObjectStoreRegistry to get object store based on url
Implementations§
source§impl 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_pool(self, memory_pool: Arc<dyn MemoryPool>) -> Self
pub fn with_memory_pool(self, memory_pool: Arc<dyn MemoryPool>) -> Self
Customize memory policy
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.
This defaults to using GreedyMemoryPool
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§
source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a copy 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 Default for RuntimeConfig
impl Default for RuntimeConfig
source§fn default() -> RuntimeConfig
fn default() -> RuntimeConfig
Returns the “default value” for a type. Read more