Struct datafusion::execution::runtime_env::RuntimeConfig
source · pub struct RuntimeConfig {
pub disk_manager: DiskManagerConfig,
pub memory_manager: MemoryManagerConfig,
pub object_store_registry: Arc<ObjectStoreRegistry>,
pub table_factories: HashMap<String, Arc<dyn TableProviderFactory>>,
}
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
table_factories: HashMap<String, Arc<dyn TableProviderFactory>>
Custom table factories for things like deltalake that are not part of core datafusion
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_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_table_factories(
self,
table_factories: HashMap<String, Arc<dyn TableProviderFactory>>
) -> Self
pub fn with_table_factories(
self,
table_factories: HashMap<String, Arc<dyn TableProviderFactory>>
) -> 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§
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