Trait datafusion_common::config::ExtensionOptions
source · pub trait ExtensionOptions:
Send
+ Sync
+ Debug
+ 'static {
// Required methods
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
fn cloned(&self) -> Box<dyn ExtensionOptions>;
fn set(&mut self, key: &str, value: &str) -> Result<()>;
fn entries(&self) -> Vec<ConfigEntry>;
}
Expand description
An object-safe API for storing arbitrary configuration
Required Methods§
sourcefn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Return self
as Any
This is needed until trait upcasting is stabilised
sourcefn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Return self
as Any
This is needed until trait upcasting is stabilised
sourcefn cloned(&self) -> Box<dyn ExtensionOptions>
fn cloned(&self) -> Box<dyn ExtensionOptions>
Return a deep clone of this ExtensionOptions
It is important this does not share mutable state to avoid consistency issues with configuration changing whilst queries are executing
sourcefn entries(&self) -> Vec<ConfigEntry>
fn entries(&self) -> Vec<ConfigEntry>
Returns the ConfigEntry
stored in this ExtensionOptions