pub struct MemGraphExecutor<S: WriteSetApplicator> { /* private fields */ }Implementations§
Source§impl<S: WriteSetApplicator> MemGraphExecutor<S>
impl<S: WriteSetApplicator> MemGraphExecutor<S>
pub fn new(store: Arc<GraphStore>, tx_mgr: Arc<TxManager<S>>) -> Self
pub fn register_dag_edge_types(&self, types: &[String])
pub fn edge_count( &self, source: NodeId, edge_type: &str, snapshot: SnapshotId, ) -> usize
Trait Implementations§
Source§impl<S: WriteSetApplicator> GraphExecutor for MemGraphExecutor<S>
impl<S: WriteSetApplicator> GraphExecutor for MemGraphExecutor<S>
fn bfs( &self, start: NodeId, edge_types: Option<&[EdgeType]>, direction: Direction, min_depth: u32, max_depth: u32, snapshot: SnapshotId, ) -> Result<TraversalResult>
fn neighbors( &self, node: NodeId, edge_types: Option<&[EdgeType]>, direction: Direction, snapshot: SnapshotId, ) -> Result<Vec<(NodeId, EdgeType, HashMap<String, Value>)>>
fn insert_edge( &self, tx: TxId, source: NodeId, target: NodeId, edge_type: EdgeType, properties: HashMap<String, Value>, ) -> Result<bool>
fn delete_edge( &self, tx: TxId, source: NodeId, target: NodeId, edge_type: &str, ) -> Result<()>
Auto Trait Implementations§
impl<S> !Freeze for MemGraphExecutor<S>
impl<S> !RefUnwindSafe for MemGraphExecutor<S>
impl<S> Send for MemGraphExecutor<S>
impl<S> Sync for MemGraphExecutor<S>
impl<S> Unpin for MemGraphExecutor<S>
impl<S> UnsafeUnpin for MemGraphExecutor<S>
impl<S> !UnwindSafe for MemGraphExecutor<S>
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