pub struct PathIndex { /* private fields */ }Expand description
Fixed-label-sequence reachability. Durable clones copy only a handle. Queries return owned results and can report storage errors.
Implementations§
Source§impl PathIndex
impl PathIndex
pub fn build<G: GraphStore>( store: &G, graph: &str, sequences: &[Vec<String>], ) -> GraphStoreResult<Self>
Sourcepub fn open_persistent(
catalog: Arc<dyn CatalogFacade>,
backend: Arc<dyn PersistentStorageBackend>,
key: &str,
graph: &str,
sequences: &[Vec<String>],
) -> GraphStoreResult<Self>
pub fn open_persistent( catalog: Arc<dyn CatalogFacade>, backend: Arc<dyn PersistentStorageBackend>, key: &str, graph: &str, sequences: &[Vec<String>], ) -> GraphStoreResult<Self>
Bind a durable definition without reading any entity or reachability row.
Sourcepub fn build_persistent(
catalog: Arc<dyn CatalogFacade>,
backend: Arc<dyn PersistentStorageBackend>,
key: &str,
graph: &str,
sequences: &[Vec<String>],
) -> GraphStoreResult<Self>
pub fn build_persistent( catalog: Arc<dyn CatalogFacade>, backend: Arc<dyn PersistentStorageBackend>, key: &str, graph: &str, sequences: &[Vec<String>], ) -> GraphStoreResult<Self>
Build in bounded batches in one storage checkpoint. A failure preserves both the old definition and its materialization.
Sourcepub fn rebind_persistent(
&self,
catalog: Arc<dyn CatalogFacade>,
backend: Arc<dyn PersistentStorageBackend>,
) -> GraphStoreResult<Self>
pub fn rebind_persistent( &self, catalog: Arc<dyn CatalogFacade>, backend: Arc<dyn PersistentStorageBackend>, ) -> GraphStoreResult<Self>
Rebind only the physical session, never copy the index’s data.
Sourcepub fn with_graph_read_view(&self, store: Arc<GraphStoreHandle>) -> Self
pub fn with_graph_read_view(&self, store: Arc<GraphStoreHandle>) -> Self
Bind a transaction/cursor view whose own-write overlay cannot use reachability pages from the live storage transaction. Only requested sequences are evaluated; no resident index or graph is constructed.
pub fn lookup( &self, sequence: &[String], ) -> GraphStoreResult<Option<BTreeSet<(u64, u64)>>>
pub fn has_path(&self, sequence: &[String]) -> bool
pub fn indexed_paths(&self) -> Vec<String>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PathIndex
impl !UnwindSafe for PathIndex
impl Freeze for PathIndex
impl Send for PathIndex
impl Sync for PathIndex
impl Unpin for PathIndex
impl UnsafeUnpin for PathIndex
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