pub struct ExecutionProps {
pub query_execution_start_time: DateTime<Utc>,
pub var_providers: Option<HashMap<VarType, Arc<dyn VarProvider + Send + Sync>>>,
}
Expand description
Holds per-execution properties and data (such as starting timestamps, etc).
An instance of this struct is created each time a LogicalPlan
is prepared for
execution (optimized). If the same plan is optimized multiple times, a new
ExecutionProps
is created each time.
It is important that this structure be cheap to create as it is done so during predicate pruning and expression simplification
Fields§
§query_execution_start_time: DateTime<Utc>
§var_providers: Option<HashMap<VarType, Arc<dyn VarProvider + Send + Sync>>>
Providers for scalar variables
Implementations§
source§impl ExecutionProps
impl ExecutionProps
sourcepub fn start_execution(&mut self) -> &Self
pub fn start_execution(&mut self) -> &Self
Marks the execution of query started timestamp
sourcepub fn add_var_provider(
&mut self,
var_type: VarType,
provider: Arc<dyn VarProvider + Send + Sync>
) -> Option<Arc<dyn VarProvider + Send + Sync>>
pub fn add_var_provider( &mut self, var_type: VarType, provider: Arc<dyn VarProvider + Send + Sync> ) -> Option<Arc<dyn VarProvider + Send + Sync>>
Registers a variable provider, returning the existing provider, if any
sourcepub fn get_var_provider(
&self,
var_type: VarType
) -> Option<Arc<dyn VarProvider + Send + Sync>>
pub fn get_var_provider( &self, var_type: VarType ) -> Option<Arc<dyn VarProvider + Send + Sync>>
Returns the provider for the var_type
, if any
Trait Implementations§
source§impl Clone for ExecutionProps
impl Clone for ExecutionProps
source§fn clone(&self) -> ExecutionProps
fn clone(&self) -> ExecutionProps
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 more