Struct datafusion::config::ConfigOptions
source · #[non_exhaustive]pub struct ConfigOptions {
pub catalog: CatalogOptions,
pub execution: ExecutionOptions,
pub optimizer: OptimizerOptions,
pub sql_parser: SqlParserOptions,
pub explain: ExplainOptions,
pub extensions: Extensions,
}
Expand description
Configuration options struct, able to store both built-in configuration and custom options
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.catalog: CatalogOptions
Catalog options
execution: ExecutionOptions
Execution options
optimizer: OptimizerOptions
Optimizer options
sql_parser: SqlParserOptions
SQL parser options
explain: ExplainOptions
Explain options
extensions: Extensions
Optional extensions registered using Extensions::insert
Implementations§
source§impl ConfigOptions
impl ConfigOptions
sourcepub fn new() -> ConfigOptions
pub fn new() -> ConfigOptions
Creates a new ConfigOptions
with default values
sourcepub fn set(&mut self, key: &str, value: &str) -> Result<(), DataFusionError>
pub fn set(&mut self, key: &str, value: &str) -> Result<(), DataFusionError>
Set a configuration option
sourcepub fn from_env() -> Result<ConfigOptions, DataFusionError>
pub fn from_env() -> Result<ConfigOptions, DataFusionError>
Create new ConfigOptions struct, taking values from environment variables where possible.
For example, setting DATAFUSION_EXECUTION_BATCH_SIZE
will
control datafusion.execution.batch_size
.
sourcepub fn entries(&self) -> Vec<ConfigEntry, Global> ⓘ
pub fn entries(&self) -> Vec<ConfigEntry, Global> ⓘ
Returns the ConfigEntry
stored within this ConfigOptions
sourcepub fn generate_config_markdown() -> String
pub fn generate_config_markdown() -> String
Generate documentation that can be included in the user guide
Trait Implementations§
source§impl Clone for ConfigOptions
impl Clone for ConfigOptions
source§fn clone(&self) -> ConfigOptions
fn clone(&self) -> ConfigOptions
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 Debug for ConfigOptions
impl Debug for ConfigOptions
source§impl Default for ConfigOptions
impl Default for ConfigOptions
source§fn default() -> ConfigOptions
fn default() -> ConfigOptions
Returns the “default value” for a type. Read more
source§impl From<ConfigOptions> for SessionConfig
impl From<ConfigOptions> for SessionConfig
source§fn from(options: ConfigOptions) -> Self
fn from(options: ConfigOptions) -> Self
Converts to this type from the input type.