pub struct RowMatcher { /* private fields */ }Expand description
Compiled per-scan row matcher replacing per-row key decoding.
One matcher per iterator walk (one per tight prefix on multi-seek scans).
matches_row runs the exact pipeline of the retired
visible_matching_put + pattern.matches + graph filter + dedup:
commit_tsfrom the fixed trailer; the logical key is the term prefix.- MVCC collapse via
SnapshotScanState::consider_slice(reusable buffer) — before any term work. op == Putfrom the fixed 5-byte value.- Width-table slot walk, then residual bound-slot checks, graph membership, dedup cursor and whole-triple collapse — all on raw bytes.
Implementations§
Source§impl RowMatcher
impl RowMatcher
Sourcepub fn compile(
pattern: &EncodedTriplePattern,
permutation: IndexPermutation,
g_filter: GByteFilter,
merge_default_graph: bool,
start_after: Option<&EncodedQuad>,
iri_only: IriOnlyMask,
) -> Self
pub fn compile( pattern: &EncodedTriplePattern, permutation: IndexPermutation, g_filter: GByteFilter, merge_default_graph: bool, start_after: Option<&EncodedQuad>, iri_only: IriOnlyMask, ) -> Self
Compile the matcher for one scan.
start_after is the exclusive resume cursor; its whole-triple skip is
byte-level (KeyRow::triple_prefix) because a merged-default cursor
(G rewritten to DefaultGraph) cannot be compared as a raw key.
Sourcepub fn matches_row(
&mut self,
key: &[u8],
value: &[u8],
snapshot: SnapshotId,
state: &mut SnapshotScanState,
) -> Result<MatchDecision, StorageError>
pub fn matches_row( &mut self, key: &[u8], value: &[u8], snapshot: SnapshotId, state: &mut SnapshotScanState, ) -> Result<MatchDecision, StorageError>
Match one versioned row (key ‖ trailer, 5-byte value) under snapshot.
See the struct docs for the per-row pipeline. On MatchDecision::Emit
the walked slot starts are returned so the caller can build a
KeyRow without re-walking the key.
Auto Trait Implementations§
impl Freeze for RowMatcher
impl RefUnwindSafe for RowMatcher
impl Send for RowMatcher
impl Sync for RowMatcher
impl Unpin for RowMatcher
impl UnsafeUnpin for RowMatcher
impl UnwindSafe for RowMatcher
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