Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
datafusion::execution - Rust
[go: Go Back, main page]

Module datafusion::execution

source ·
Expand description

This module contains the shared state available at different parts of query planning and execution

Runtime Environment

runtime_env::RuntimeEnv can be created from a runtime_env::RuntimeConfig and stores state to be shared across multiple sessions. In most applications there will be a single runtime_env::RuntimeEnv for the entire process

Session Context

context::SessionContext can be created from a context::SessionConfig and an optional runtime_env::RuntimeConfig, and stores the state for a particular query session.

In particular context::SessionState is the information available to query planning

Task Context

context::TaskContext is typically created from a context::SessionContext or context::SessionState, and represents the state available to query execution.

In particular it is the state passed to crate::physical_plan::ExecutionPlan::execute

Re-exports

  • pub use crate::datasource::file_format::options;

Modules

  • SessionContext contains methods for registering data sources and executing queries
  • Manages files generated during query execution, files are hashed among the directories listed in RuntimeConfig::local_dirs.
  • Manages all available memory during query execution
  • FunctionRegistry trait
  • Execution runtime environment that holds object Store, memory manager, disk manager and various system level components that are used during physical plan execution.

Structs

  • Manages files generated during query execution, e.g. spill files generated while processing dataset larger than available memory.

Traits

  • A registry knows how to build logical expressions out of user-defined function’ names