pub struct LiveQuadsProfile {
pub total_puts: u64,
pub predicate_counts: BTreeMap<StrHash, u64>,
pub class_counts: BTreeMap<StrHash, u64>,
pub subject_cms: CountMinSketch,
pub object_cms: CountMinSketch,
pub subjects_per_predicate: BTreeMap<StrHash, HyperLogLog>,
pub objects_per_predicate: BTreeMap<StrHash, HyperLogLog>,
}Expand description
The write-path (open/flushing) profile of one shard: exactly the stats
the canonical hexastore write stream produces.
The two CF-keyed counts are deliberately ABSENT. The named-graph count and
the temporal tick histogram are produced by their own CFs’ collectors, so
they live in ShardStats overlays rotated by those
CFs’ own flushes; carrying them here would let a canonical flush sweep
counts into an aside that no canonical SST contains and drop them at
reload. This is also the ONLY type observe_quad
accumulates into — a sealed StatsProfile is a derived artifact (blob
decode, merged(), the collectors’ From conversion), so quad stats can
never enter the system around the write path.
Fields§
§total_puts: u64Approximate total Put observations in this profile.
predicate_counts: BTreeMap<StrHash, u64>Exact predicate frequencies (named-node predicates).
class_counts: BTreeMap<StrHash, u64>Exact rdf:type class instance counts (named-node classes only).
subject_cms: CountMinSketchSubject frequency CMS.
object_cms: CountMinSketchObject frequency CMS.
subjects_per_predicate: BTreeMap<StrHash, HyperLogLog>Distinct subjects per predicate (joint S–P cardinality).
objects_per_predicate: BTreeMap<StrHash, HyperLogLog>Distinct objects per predicate (joint P–O cardinality).
Implementations§
Source§impl LiveQuadsProfile
impl LiveQuadsProfile
Sourcepub fn merge(&mut self, other: &Self) -> Result<(), StatsError>
pub fn merge(&mut self, other: &Self) -> Result<(), StatsError>
Algebraic merge (CMS add, HLL register-max, exact maps sum) — the
StatsProfile::merge field set minus the CF-keyed overlays.
Trait Implementations§
Source§impl Clone for LiveQuadsProfile
impl Clone for LiveQuadsProfile
Source§fn clone(&self) -> LiveQuadsProfile
fn clone(&self) -> LiveQuadsProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more