pub enum DomainScanKind {
PredicateDomain,
PredicateSubjects,
SubjectPreds,
SubjectDomain,
ObjectPreds,
}Expand description
Slot roles shared by the distinct domain scan and the domain count scan.
Slot 0 is a known constraint (pattern constant, grounded-kept term, or
broadcast term set). Slot 1 is the head. The remaining slot is dead to the
RPC. ScanOp::domain_scan emits distinct heads and requires that
head to be live and bag-insensitive, with the dead slot dropped.
ScanOp::domain_counts walks the same prefixes but returns each head’s
run length; the dead slot may be counted (COUNT(?v) / COUNT(*)) and
the head may be bag-sensitive.
Variants§
PredicateDomain
POSG: constraint predicate(s), dead subject, object head.
PredicateSubjects
PSOG: constraint predicate(s), dead object, subject head.
SubjectPreds
SPOG: constraint subject(s), dead object, predicate head.
SubjectDomain
SOPG: constraint subject(s), dead predicate, object head.
ObjectPreds
OPSG: constraint object(s), dead subject, predicate head.
Implementations§
Source§impl DomainScanKind
impl DomainScanKind
Sourcepub fn permutation(self) -> IndexPermutation
pub fn permutation(self) -> IndexPermutation
Axis-local CF the rewrite skip-scans.
Sourcepub fn axis(self) -> PartitionAxis
pub fn axis(self) -> PartitionAxis
Partition axis owning Self::permutation.
Sourcepub fn constraint_slot(self) -> PatternSlot
pub fn constraint_slot(self) -> PatternSlot
Pattern slot holding the known constraint term(s).
Sourcepub fn head_slot(self) -> PatternSlot
pub fn head_slot(self) -> PatternSlot
Pattern slot of the head (distinct terms, or the counted run).
Sourcepub fn dead_slot(self) -> PatternSlot
pub fn dead_slot(self) -> PatternSlot
Pattern slot the RPC does not return. Distinct scans require it dropped; count scans may still need its multiplicity.
Trait Implementations§
Source§impl Clone for DomainScanKind
impl Clone for DomainScanKind
Source§fn clone(&self) -> DomainScanKind
fn clone(&self) -> DomainScanKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DomainScanKind
impl Debug for DomainScanKind
Source§impl PartialEq for DomainScanKind
impl PartialEq for DomainScanKind
impl Copy for DomainScanKind
impl Eq for DomainScanKind
impl StructuralPartialEq for DomainScanKind
Auto Trait Implementations§
impl Freeze for DomainScanKind
impl RefUnwindSafe for DomainScanKind
impl Send for DomainScanKind
impl Sync for DomainScanKind
impl Unpin for DomainScanKind
impl UnsafeUnpin for DomainScanKind
impl UnwindSafe for DomainScanKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].