pub struct BuildStats {
pub statements: usize,
pub default_triples: usize,
pub named_graphs: usize,
pub terms: usize,
pub pyramid_levels: u16,
pub label_index: bool,
}Expand description
Counts describing an assembled file, for status lines and UIs.
In the BuildStats a metadata callback receives, statements and
default_triples are the counts ingested — the input multiset, before
the index deduplicates it. In the BuildStats an assemble function
returns, they are the counts actually written (see
FinalCounts), so a status line reports what the file holds. Use
FinalCounts rather than these when a payload must agree with the header.
Fields§
§statements: usizeTotal statements, across the default graph and every named one.
default_triples: usizeStatements that landed in the default graph.
named_graphs: usizeHow many named graphs the input mentioned; one index is written per graph.
terms: usizeDistinct terms in the shared dictionary.
pyramid_levels: u16Levels in the community pyramid, or 0 when the build skipped it.
label_index: boolWhether the file got a label index. The record says so even when the caller (a binding) set no option for it.
Trait Implementations§
Source§impl Clone for BuildStats
impl Clone for BuildStats
Source§fn clone(&self) -> BuildStats
fn clone(&self) -> BuildStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more