pub struct Stats {Show 13 fields
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>,
pub schema_scopes: BTreeSet<i64>,
pub version: VersionState,
pub vector_indexes: Vec<VectorIndex>,
pub vector_problems: Vec<String>,
pub vector_built: BTreeMap<String, String>,
}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, any scope), for query-time reasoning.
schema_scopes: BTreeSet<i64>Graphs with a closure scope of their own (see registry::ontology_axioms).
version: VersionStateThe versioning level and history of the store (see version).
vector_indexes: Vec<VectorIndex>Vector index definitions of <oxilite:vectors> (loaded on backends with vectors).
vector_problems: Vec<String>Why descriptions in <oxilite:vectors> are not valid definitions.
vector_built: BTreeMap<String, String>Fingerprints of the built vector tables, by lower-case index name.
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, the schema closure and the shape index (run by
optimize()).