pub struct QueryExecutor<'a> { /* private fields */ }Expand description
SPARQL query executor with integrated performance monitoring
This executor tracks query performance metrics using SciRS2-core:
- Query execution time broken down by query type
- Pattern matching statistics
- Result set size distribution
- Query complexity indicators
Implementations§
Source§impl<'a> QueryExecutor<'a>
impl<'a> QueryExecutor<'a>
Sourcepub fn new(backend: &'a StorageBackend) -> Self
pub fn new(backend: &'a StorageBackend) -> Self
Create a new query executor for the given storage backend with performance monitoring
The executor automatically tracks:
- Query execution times
- Query type distribution
- Pattern matching operations
- Result set sizes
Sourcepub fn get_stats(&self) -> ExecutorStats
pub fn get_stats(&self) -> ExecutorStats
Get query execution statistics
Returns the current metrics including:
- Total queries executed by type
- Average execution time
- Pattern matching statistics
- Result set size distribution
Sourcepub fn execute(&self, sparql: &str) -> Result<OxirsQueryResults>
pub fn execute(&self, sparql: &str) -> Result<OxirsQueryResults>
Execute a SPARQL query
pub fn query(&self, sparql: &str) -> Result<OxirsQueryResults>
Auto Trait Implementations§
impl<'a> Freeze for QueryExecutor<'a>
impl<'a> !RefUnwindSafe for QueryExecutor<'a>
impl<'a> Send for QueryExecutor<'a>
impl<'a> Sync for QueryExecutor<'a>
impl<'a> Unpin for QueryExecutor<'a>
impl<'a> UnsafeUnpin for QueryExecutor<'a>
impl<'a> !UnwindSafe for QueryExecutor<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more