pub struct DomainScanCountHit {
pub constraint: EncodedTerm,
pub term: EncodedTerm,
pub count: u64,
}Expand description
One (constraint, head, run length) triple from a domain count scan.
count is the run length of the visible Put rows under
(constraint, head) that satisfy the graph window at the scan’s
snapshot, as selected by the request’s DomainCountMode: visible rows
(Rows), distinct slot-2 terms (DistinctTerms), or distinct G terms
(DistinctGraphs). Under merge_default_graph with Rows it is the
number of distinct S/P/O prefixes (one per slot-2 term, extra graphs
skipped) — which is exactly DistinctTerms’ semantics.
Fields§
§constraint: EncodedTermThe slot-0 constraint term this hit was found under.
term: EncodedTermSlot-1 head term under that constraint.
count: u64Run length under (constraint, term) at the snapshot, per the
request’s DomainCountMode.
Trait Implementations§
Source§impl Clone for DomainScanCountHit
impl Clone for DomainScanCountHit
Source§fn clone(&self) -> DomainScanCountHit
fn clone(&self) -> DomainScanCountHit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DomainScanCountHit
impl Debug for DomainScanCountHit
Source§impl PartialEq for DomainScanCountHit
impl PartialEq for DomainScanCountHit
impl StructuralPartialEq for DomainScanCountHit
Auto Trait Implementations§
impl Freeze for DomainScanCountHit
impl RefUnwindSafe for DomainScanCountHit
impl Send for DomainScanCountHit
impl Sync for DomainScanCountHit
impl Unpin for DomainScanCountHit
impl UnsafeUnpin for DomainScanCountHit
impl UnwindSafe for DomainScanCountHit
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