pub struct Stats {
pub available: bool,
pub total: f64,
pub predicates: HashMap<i64, PredicateStats>,
pub classes: HashMap<i64, f64>,
pub pairs: HashMap<(i64, i64), f64>,
pub graph_index: bool,
pub text_index: bool,
pub transitive: BTreeSet<i64>,
}Expand description
Planner statistics loaded from stats_pred / stats_class.
Fields§
§available: booltrue when optimize() has been run at least once.
total: f64§predicates: HashMap<i64, PredicateStats>§classes: HashMap<i64, f64>Instance count per rdf:type class.
pairs: HashMap<(i64, i64), f64>Triples per frequent (predicate, object) pair of low-cardinality predicates: values much more common than their predicate’s average (skew the average would hide).
graph_index: bool§text_index: boolThe full-text index exists (oxl:textMatch compiles to FTS5).
transitive: BTreeSet<i64>Transitive properties (from tbox_closure), for query-time reasoning.
Implementations§
Source§impl Stats
impl Stats
Sourcepub fn load_request(caps: &Capabilities) -> Request
pub fn load_request(caps: &Capabilities) -> Request
Statements that load statistics and store settings.
pub fn from_response(response: &Response) -> Result<Self>
Sourcepub fn refresh_request() -> Request
pub fn refresh_request() -> Request
Statements recomputing statistics and the schema closure (run by optimize()).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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