Struct datafusion_common::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
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() -> Self
pub fn new() -> Self
Creates a new ConfigOptions
with default values
sourcepub fn with_extensions(self, extensions: Extensions) -> Self
pub fn with_extensions(self, extensions: Extensions) -> Self
Set extensions to provided value
sourcepub fn from_env() -> Result<Self>
pub fn from_env() -> Result<Self>
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 from_string_hash_map(settings: HashMap<String, String>) -> Result<Self>
pub fn from_string_hash_map(settings: HashMap<String, String>) -> Result<Self>
Create new ConfigOptions struct, taking values from a string hash map.
Only the built-in configurations will be extracted from the hash map and other key value pairs will be ignored.
sourcepub fn entries(&self) -> Vec<ConfigEntry>
pub fn entries(&self) -> Vec<ConfigEntry>
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more