pub trait MeshQueryExecutor: Send + Sync {
// Required method
fn execute_with<'life0, 'async_trait>(
&'life0 self,
plan: ExecutionPlan,
options: ExecuteOptions,
) -> Pin<Box<dyn Future<Output = Result<RunningQuery, MeshError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn execute<'life0, 'async_trait>(
&'life0 self,
plan: ExecutionPlan,
) -> Pin<Box<dyn Future<Output = Result<RunningQuery, MeshError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Expand description
The user-facing executor surface. Walks an
ExecutionPlan and produces rows.
Implementors ship with caching disabled by default;
LocalMeshQueryExecutor::with_cache and
super::federated::FederatedMeshQueryExecutor::with_cache
wire the Phase F LRU. The default execute(plan) is
equivalent to execute_with(plan, ExecuteOptions::default())
so existing call sites need no change.
Required Methods§
Sourcefn execute_with<'life0, 'async_trait>(
&'life0 self,
plan: ExecutionPlan,
options: ExecuteOptions,
) -> Pin<Box<dyn Future<Output = Result<RunningQuery, MeshError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with<'life0, 'async_trait>(
&'life0 self,
plan: ExecutionPlan,
options: ExecuteOptions,
) -> Pin<Box<dyn Future<Output = Result<RunningQuery, MeshError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Begin execution of plan with explicit options.
Cache-aware implementors honour ExecuteOptions::bypass_cache
and ExecuteOptions::cache_policy; cache-less ones
silently ignore both.
Provided Methods§
Sourcefn execute<'life0, 'async_trait>(
&'life0 self,
plan: ExecutionPlan,
) -> Pin<Box<dyn Future<Output = Result<RunningQuery, MeshError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
plan: ExecutionPlan,
) -> Pin<Box<dyn Future<Output = Result<RunningQuery, MeshError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Begin execution of plan with default
ExecuteOptions.
Errors before stream construction (e.g. unresolved
composite operator) surface synchronously; errors mid-
stream surface as Err items in the stream.