Struct datafusion::execution::runtime_env::RuntimeConfig
source · pub struct RuntimeConfig {
pub disk_manager: DiskManagerConfig,
pub memory_pool: Option<Arc<dyn MemoryPool>>,
pub cache_manager: CacheManagerConfig,
pub object_store_registry: Arc<dyn 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
cache_manager: CacheManagerConfig
CacheManager to manage cache data
object_store_registry: Arc<dyn ObjectStoreRegistry>
ObjectStoreRegistry to get object store based on url
Implementations§
source§impl RuntimeConfig
impl RuntimeConfig
sourcepub fn new() -> RuntimeConfig
pub fn new() -> RuntimeConfig
New with default values
sourcepub fn with_disk_manager(self, disk_manager: DiskManagerConfig) -> RuntimeConfig
pub fn with_disk_manager(self, disk_manager: DiskManagerConfig) -> RuntimeConfig
Customize disk manager
sourcepub fn with_memory_pool(self, memory_pool: Arc<dyn MemoryPool>) -> RuntimeConfig
pub fn with_memory_pool(self, memory_pool: Arc<dyn MemoryPool>) -> RuntimeConfig
Customize memory policy
sourcepub fn with_cache_manager(
self,
cache_manager: CacheManagerConfig
) -> RuntimeConfig
pub fn with_cache_manager( self, cache_manager: CacheManagerConfig ) -> RuntimeConfig
Customize cache policy
sourcepub fn with_object_store_registry(
self,
object_store_registry: Arc<dyn ObjectStoreRegistry>
) -> RuntimeConfig
pub fn with_object_store_registry( self, object_store_registry: Arc<dyn ObjectStoreRegistry> ) -> RuntimeConfig
Customize object store registry
sourcepub fn with_memory_limit(
self,
max_memory: usize,
memory_fraction: f64
) -> RuntimeConfig
pub fn with_memory_limit( self, max_memory: usize, memory_fraction: f64 ) -> RuntimeConfig
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>) -> RuntimeConfig
pub fn with_temp_file_path(self, path: impl Into<PathBuf>) -> RuntimeConfig
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
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl !RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl !UnwindSafe for RuntimeConfig
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