pub enum PatternEngine {
Auto,
Nfa,
Walk,
}Expand description
Which pattern engine serves a clause (ADR-0519): a diagnostic-only switch for the pattern-engine spike — never Cypher syntax, no query-level spelling, and no stability promise. It dies with the old engines it switches between.
Read once at Database::open from RELATE_PATTERN_ENGINE:
unset, blank, and auto are PatternEngine::Auto (today’s routing
exactly); nfa forces the frontier family’s rung (ADR-0478) onto
every frontier-compilable clause, bypassing that rung’s cost gate —
every structural, answer-shape, allocation and budget proof stands,
and a decline still fails through; walk stands the traversal
kernels down (the with_kernels_disabled differential behavior,
env-reachable), so the batch scan-filter chain and the per-row walker
serve every clause.
Variants§
Auto
Today’s routing exactly: every rung’s own proofs and cost gates decide, unchanged.
Nfa
Force the frontier family’s rung for every frontier-compilable
clause (the cost gate frontier_match::frontier_engages is
bypassed); the batch/chain-kernel rungs stand down for the
clauses the frontier takes — they sit below it on both operator
ladders and decline the quantified shapes structurally.
Walk
Stand the traversal kernels down: the chain/hub-star kernels
(ADR-0473) and the frontier family (ADR-0478) decline every
clause, and the batch scan-filter chain plus the per-row walker
serve — the differential suites’ with_kernels_disabled
behavior, reachable from a real process.
Implementations§
Trait Implementations§
Source§impl Clone for PatternEngine
impl Clone for PatternEngine
impl Copy for PatternEngine
Source§impl Debug for PatternEngine
impl Debug for PatternEngine
Source§impl Default for PatternEngine
impl Default for PatternEngine
impl Eq for PatternEngine
Source§impl FromStr for PatternEngine
impl FromStr for PatternEngine
Source§impl PartialEq for PatternEngine
impl PartialEq for PatternEngine
impl StructuralPartialEq for PatternEngine
Auto Trait Implementations§
impl Forget for PatternEngine
impl Freeze for PatternEngine
impl Move for PatternEngine
impl RefUnwindSafe for PatternEngine
impl Send for PatternEngine
impl Sync for PatternEngine
impl Unpin for PatternEngine
impl UnsafeUnpin for PatternEngine
impl UnwindSafe for PatternEngine
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.