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
sourceimpl 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
sourceimpl Clone for ExecutionProps
impl Clone for ExecutionProps
sourcefn clone(&self) -> ExecutionProps
fn clone(&self) -> ExecutionProps
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 moreAuto Trait Implementations
impl !RefUnwindSafe for ExecutionProps
impl Send for ExecutionProps
impl Sync for ExecutionProps
impl Unpin for ExecutionProps
impl !UnwindSafe for ExecutionProps
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more