pub struct ScanPatternRequest {Show 15 fields
pub pattern: Option<EncodedTriplePattern>,
pub snapshot_id: u64,
pub limit: u64,
pub permutation: i32,
pub filter_slot: i32,
pub filter_terms: Vec<Vec<u8>>,
pub start_after: Option<EncodedQuad>,
pub graph_filter_terms: Vec<Vec<u8>>,
pub graph_filter_allow: bool,
pub merge_default_graph: bool,
pub iri_only_subject: bool,
pub iri_only_object: bool,
pub omitted_slots: u32,
pub verdict_wanted: bool,
pub comparisons: Vec<SlotComparison>,
}Fields§
§pattern: Option<EncodedTriplePattern>§snapshot_id: u64MVCC read timestamp. Phase 8 sources this from the cluster TSO.
limit: u640 means unlimited.
permutation: i32UNSPECIFIED lets the partition pick its longest-prefix axis-local index.
filter_slot: i32Phase 9b broadcast: when set with filter_terms, only rows whose term in this slot is a member of filter_terms are returned. The pattern slot should be unbound; the partition binds each filter term and scans.
filter_terms: Vec<Vec<u8>>Encoded term bytes (same encoding as EncodedTriplePattern slots).
start_after: Option<EncodedQuad>Exclusive resume cursor: skip this logical quad and every LSM version of it, then continue in index order. Unset means start of the prefix.
graph_filter_terms: Vec<Vec<u8>>Residual G-slot membership. Always the graph name; never a PatternSlot. false (default) = block-list; true = allow-list. Empty block-list blocks nothing (no extra G constraint; pattern.graph_name still applies). Empty allow-list allows nothing.
graph_filter_allow: bool§merge_default_graph: boolSPARQL default-graph RDF merge: emit each distinct S/P/O once (G last in
every hexastore index, so same-triple named graphs are adjacent), skip
start_after’s whole triple (any G), and rewrite each result G slot to
DefaultGraph (zero bytes) before the response. Compute never projects G
for those scans. false = ordinary quad scan (GRAPH / single-graph BGP).
iri_only_subject: boolIRI-only pushdown (planner-derived from FILTER(isIRI(?x)) conjuncts): a
set flag rejects every row whose S (11) / O (12) segment is not a
NamedNode encoding (first byte TYPE_NAMED_NODE_ID). The predicate slot
is never flagged: only a NamedNode can begin a predicate segment. The
SPARQL filter stays in the plan and remains the source of truth — this is
a cheap partition-side pre-filter, not a semantic replacement.
CountPattern must not set these (its helpers do not evaluate them; a set
flag is rejected with invalid_argument).
iri_only_object: bool§omitted_slots: u32Slots whose term bytes the partition OMITS from every returned quad. Bit 0 subject, bit 1 predicate, bit 2 object, bit 3 graph; 0 (the default) sends every slot, and bits above 3 are rejected with invalid_argument.
An omitted slot is an empty bytes field, which on the wire is identical
to the default graph’s zero-length encoding, so the receiver MUST NOT
decode one: it reassembles the slot from this request’s own bound pattern
term, or from its counted-presence sentinel when no consumer reads the
slot. Compute omits a slot only when one of those two answers is exact.
Cursors are never omitted: start_after carries all four slots, because
compute builds the next cursor (and the eager stream re-opens from its
last appended row) out of returned quads, and a reassembled slot would
encode the wrong key. CountPattern rejects a non-zero mask (it returns no
quads).
verdict_wanted: boolWhether the consumer will issue another request after a FULL page, and therefore wants the walk to spend look-ahead work reporting an honest terminal verdict at exact limit boundaries. false (the default) stops the walk AT the limit’th row — the historical behavior, and the honest answer for a consumer whose demand equals its whole remaining interest (an ASK / one-shot slice: a satisfied page is never followed by another request). true keeps the walk running past a full page until the next emitting row proves more data (LIMITED) or the key range ends (terminal verdict). Inert when limit = 0 (a drain never fills its page).
comparisons: Vec<SlotComparison>Slot comparisons evaluated inside the walk before a row is emitted. ANDed in list order. A row the partition cannot decide is kept: this is a definite-drop mask, and the compute-side FILTER conjunct stays authoritative. ScanPattern and ScanPatternStream honor the field; CountPattern rejects it (its count walks count raw rows and never decode a slot term).
Implementations§
Source§impl ScanPatternRequest
impl ScanPatternRequest
Sourcepub fn permutation(&self) -> IndexPermutation
pub fn permutation(&self) -> IndexPermutation
Returns the enum value of permutation, or the default if the field is set to an invalid enum value.
Sourcepub fn set_permutation(&mut self, value: IndexPermutation)
pub fn set_permutation(&mut self, value: IndexPermutation)
Sets permutation to the provided enum value.
Sourcepub fn filter_slot(&self) -> PatternSlot
pub fn filter_slot(&self) -> PatternSlot
Returns the enum value of filter_slot, or the default if the field is set to an invalid enum value.
Sourcepub fn set_filter_slot(&mut self, value: PatternSlot)
pub fn set_filter_slot(&mut self, value: PatternSlot)
Sets filter_slot to the provided enum value.
Trait Implementations§
Source§impl Clone for ScanPatternRequest
impl Clone for ScanPatternRequest
Source§fn clone(&self) -> ScanPatternRequest
fn clone(&self) -> ScanPatternRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScanPatternRequest
impl Debug for ScanPatternRequest
Source§impl Default for ScanPatternRequest
impl Default for ScanPatternRequest
Source§impl Message for ScanPatternRequest
impl Message for ScanPatternRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ScanPatternRequest
impl PartialEq for ScanPatternRequest
impl StructuralPartialEq for ScanPatternRequest
Auto Trait Implementations§
impl !Freeze for ScanPatternRequest
impl RefUnwindSafe for ScanPatternRequest
impl Send for ScanPatternRequest
impl Sync for ScanPatternRequest
impl Unpin for ScanPatternRequest
impl UnsafeUnpin for ScanPatternRequest
impl UnwindSafe for ScanPatternRequest
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<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].