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 with_extensions(self, extensions: Extensions) -> ConfigOptions
pub fn with_extensions(self, extensions: Extensions) -> ConfigOptions
Set extensions to provided value
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) -> SessionConfig
fn from(options: ConfigOptions) -> SessionConfig
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigOptions
impl Send for ConfigOptions
impl Sync for ConfigOptions
impl Unpin for ConfigOptions
impl !UnwindSafe for ConfigOptions
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