pub struct IncrementalPatternMatcher {
pub pattern: GraphPattern,
pub graph: String,
pub base_matches: BTreeSet<Vec<VertexId>>,
}Fields§
§pattern: GraphPattern§graph: String§base_matches: BTreeSet<Vec<VertexId>>Implementations§
Source§impl IncrementalPatternMatcher
impl IncrementalPatternMatcher
pub fn new(pattern: GraphPattern, graph: impl Into<String>) -> Self
pub fn matches(&self) -> &BTreeSet<Vec<VertexId>>
Sourcepub fn seed<G: GraphStore>(&mut self, store: &G) -> GraphStoreResult<()>
pub fn seed<G: GraphStore>(&mut self, store: &G) -> GraphStoreResult<()>
Initial population of the base match set. Equivalent to a
one-shot GMatch whose results are folded into base_matches.
Sourcepub fn update<G: GraphStore>(
&mut self,
store: &G,
delta: &GraphDelta,
) -> GraphStoreResult<&BTreeSet<Vec<VertexId>>>
pub fn update<G: GraphStore>( &mut self, store: &G, delta: &GraphDelta, ) -> GraphStoreResult<&BTreeSet<Vec<VertexId>>>
Apply a delta and return the refreshed match set. The store is expected to already reflect the delta.
Auto Trait Implementations§
impl !RefUnwindSafe for IncrementalPatternMatcher
impl !UnwindSafe for IncrementalPatternMatcher
impl Freeze for IncrementalPatternMatcher
impl Send for IncrementalPatternMatcher
impl Sync for IncrementalPatternMatcher
impl Unpin for IncrementalPatternMatcher
impl UnsafeUnpin for IncrementalPatternMatcher
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