pub struct QueryPlanSummary {
pub total_nodes: usize,
pub total_execution_time_us: u64,
pub total_estimated_cost: f64,
pub triple_patterns: usize,
pub joins: usize,
pub filters: usize,
pub unions: usize,
pub optionals: usize,
pub index_operations: usize,
pub cardinality_errors: Vec<f64>,
}Expand description
Summary statistics for query plan
Fields§
§total_nodes: usizeTotal number of nodes in plan
total_execution_time_us: u64Total execution time in microseconds
total_estimated_cost: f64Total estimated cost
triple_patterns: usizeNumber of triple patterns
joins: usizeNumber of joins
filters: usizeNumber of filters
unions: usizeNumber of unions
optionals: usizeNumber of optional patterns
index_operations: usizeNumber of operations using indexes
cardinality_errors: Vec<f64>Cardinality estimation errors (ratio of estimate/actual)
Implementations§
Source§impl QueryPlanSummary
impl QueryPlanSummary
Sourcepub fn avg_cardinality_error(&self) -> f64
pub fn avg_cardinality_error(&self) -> f64
Calculate average cardinality error
Sourcepub fn execution_time_ms(&self) -> f64
pub fn execution_time_ms(&self) -> f64
Get execution time in milliseconds
Trait Implementations§
Source§impl Debug for QueryPlanSummary
impl Debug for QueryPlanSummary
Source§impl Default for QueryPlanSummary
impl Default for QueryPlanSummary
Source§fn default() -> QueryPlanSummary
fn default() -> QueryPlanSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryPlanSummary
impl<'de> Deserialize<'de> for QueryPlanSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for QueryPlanSummary
impl Display for QueryPlanSummary
Auto Trait Implementations§
impl Freeze for QueryPlanSummary
impl RefUnwindSafe for QueryPlanSummary
impl Send for QueryPlanSummary
impl Sync for QueryPlanSummary
impl Unpin for QueryPlanSummary
impl UnsafeUnpin for QueryPlanSummary
impl UnwindSafe for QueryPlanSummary
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.