Struct datafusion::execution::context::ExecutionContextState
source · [−]pub struct ExecutionContextState {
pub catalog_list: Arc<dyn CatalogList>,
pub scalar_functions: HashMap<String, Arc<ScalarUDF>>,
pub aggregate_functions: HashMap<String, Arc<AggregateUDF>>,
pub config: ExecutionConfig,
pub execution_props: ExecutionProps,
pub object_store_registry: Arc<ObjectStoreRegistry>,
pub runtime_env: Arc<RuntimeEnv>,
}
Expand description
Execution context for registering data sources and executing queries
Fields
catalog_list: Arc<dyn CatalogList>
Collection of catalogs containing schemas and ultimately TableProviders
scalar_functions: HashMap<String, Arc<ScalarUDF>>
Scalar functions that are registered with the context
aggregate_functions: HashMap<String, Arc<AggregateUDF>>
Aggregate functions registered in the context
config: ExecutionConfig
Context configuration
execution_props: ExecutionProps
Execution properties
object_store_registry: Arc<ObjectStoreRegistry>
Object Store that are registered with the context
runtime_env: Arc<RuntimeEnv>
Runtime environment
Implementations
Trait Implementations
sourceimpl Clone for ExecutionContextState
impl Clone for ExecutionContextState
sourcefn clone(&self) -> ExecutionContextState
fn clone(&self) -> ExecutionContextState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ContextProvider for ExecutionContextState
impl ContextProvider for ExecutionContextState
sourcefn get_table_provider(
&self,
name: TableReference<'_>
) -> Option<Arc<dyn TableProvider>>
fn get_table_provider(
&self,
name: TableReference<'_>
) -> Option<Arc<dyn TableProvider>>
Getter for a datasource
sourcefn get_aggregate_meta(&self, name: &str) -> Option<Arc<AggregateUDF>>
fn get_aggregate_meta(&self, name: &str) -> Option<Arc<AggregateUDF>>
Getter for a UDAF description
sourceimpl Default for ExecutionContextState
impl Default for ExecutionContextState
Auto Trait Implementations
impl !RefUnwindSafe for ExecutionContextState
impl Send for ExecutionContextState
impl Sync for ExecutionContextState
impl Unpin for ExecutionContextState
impl !UnwindSafe for ExecutionContextState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more