Skip to main content

Stats

Struct Stats 

Source
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: bool

true 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: bool

The 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: VersionState

The 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

Source

pub fn load_request(caps: &Capabilities) -> Request

Statements that load statistics and store settings.

Source

pub fn from_response(response: &Response) -> Result<Self>

Source

pub fn refresh_request() -> Request

Statements recomputing statistics, the schema closure and the shape index (run by optimize()).

Trait Implementations§

Source§

impl Clone for Stats

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Stats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Stats

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V