Struct datafusion::execution::context::ExecutionConfig [−][src]
pub struct ExecutionConfig { pub concurrency: usize, pub batch_size: usize, pub physical_optimizers: Vec<Arc<dyn PhysicalOptimizerRule + Send + Sync>>, pub repartition_joins: bool, // some fields omitted }
Configuration options for execution context
Fields
concurrency: usize
Number of concurrent threads for query execution.
batch_size: usize
Default batch size when reading data sources
physical_optimizers: Vec<Arc<dyn PhysicalOptimizerRule + Send + Sync>>
Responsible for optimizing a physical execution plan
repartition_joins: bool
Should DataFusion repartition data using the join keys to execute joins in parallel
using the provided concurrency
level
Implementations
impl ExecutionConfig
[src]
impl ExecutionConfig
[src]pub fn new() -> Self
[src]
Create an execution config with default setting
pub fn with_concurrency(self, n: usize) -> Self
[src]
Customize max_concurrency
pub fn with_batch_size(self, n: usize) -> Self
[src]
Customize batch size
pub fn with_query_planner(
self,
query_planner: Arc<dyn QueryPlanner + Send + Sync>
) -> Self
[src]
self,
query_planner: Arc<dyn QueryPlanner + Send + Sync>
) -> Self
Replace the default query planner
pub fn with_physical_optimizer_rules(
self,
physical_optimizers: Vec<Arc<dyn PhysicalOptimizerRule + Send + Sync>>
) -> Self
[src]
self,
physical_optimizers: Vec<Arc<dyn PhysicalOptimizerRule + Send + Sync>>
) -> Self
Replace the physical optimizer rules
pub fn add_optimizer_rule(
self,
optimizer_rule: Arc<dyn OptimizerRule + Send + Sync>
) -> Self
[src]
self,
optimizer_rule: Arc<dyn OptimizerRule + Send + Sync>
) -> Self
Adds a new OptimizerRule
pub fn add_physical_optimizer_rule(
self,
optimizer_rule: Arc<dyn PhysicalOptimizerRule + Send + Sync>
) -> Self
[src]
self,
optimizer_rule: Arc<dyn PhysicalOptimizerRule + Send + Sync>
) -> Self
Adds a new PhysicalOptimizerRule
pub fn with_default_catalog_and_schema(
self,
catalog: impl Into<String>,
schema: impl Into<String>
) -> Self
[src]
self,
catalog: impl Into<String>,
schema: impl Into<String>
) -> Self
Selects a name for the default catalog and schema
pub fn create_default_catalog_and_schema(self, create: bool) -> Self
[src]
Controls whether the default catalog and schema will be automatically created
pub fn with_information_schema(self, enabled: bool) -> Self
[src]
Enables or disables the inclusion of information_schema
virtual tables
pub fn with_repartition_joins(self, enabled: bool) -> Self
[src]
Enables or disables the use of repartitioning for joins to improve parallelism
Trait Implementations
impl Clone for ExecutionConfig
[src]
impl Clone for ExecutionConfig
[src]fn clone(&self) -> ExecutionConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for ExecutionConfig
impl !RefUnwindSafe for ExecutionConfig
impl Send for ExecutionConfig
impl Send for ExecutionConfig
impl Sync for ExecutionConfig
impl Sync for ExecutionConfig
impl Unpin for ExecutionConfig
impl Unpin for ExecutionConfig
impl !UnwindSafe for ExecutionConfig
impl !UnwindSafe for ExecutionConfig