Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
ExecutionConfig in datafusion::execution::context - Rust
[go: Go Back, main page]

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]

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]

Replace the default query planner

pub fn with_physical_optimizer_rules(
    self,
    physical_optimizers: Vec<Arc<dyn PhysicalOptimizerRule + Send + Sync>>
) -> Self
[src]

Replace the physical optimizer rules

pub fn add_optimizer_rule(
    self,
    optimizer_rule: Arc<dyn OptimizerRule + Send + Sync>
) -> Self
[src]

Adds a new OptimizerRule

pub fn add_physical_optimizer_rule(
    self,
    optimizer_rule: Arc<dyn PhysicalOptimizerRule + Send + Sync>
) -> Self
[src]

pub fn with_default_catalog_and_schema(
    self,
    catalog: impl Into<String>,
    schema: impl Into<String>
) -> Self
[src]

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,