Skip to main content

GraphExport

Trait GraphExport 

Source
pub trait GraphExport {
Show 16 methods // Required methods fn commit_ts(&self) -> u64; fn next_node_id(&self) -> i64; fn next_rel_id(&self) -> i64; fn live_node_count(&self) -> usize; fn checkpoint_dirty(&self) -> CheckpointDirty; fn all_node_ids_at(&self, ts: u64) -> Vec<NodeId>; fn all_rel_ids_at(&self, ts: u64) -> Vec<RelId>; fn node_at(&self, id: NodeId, ts: u64) -> Option<Node>; fn rel_at(&self, id: RelId, ts: u64) -> Option<Relationship>; fn node_checkpoint_bytes(&self, id: NodeId, ts: u64) -> Result<Option<u64>>; fn rel_checkpoint_bytes(&self, id: RelId, ts: u64) -> Result<Option<u64>>; fn named_indexes(&self) -> Vec<IndexDef>; fn named_constraints(&self) -> Vec<ConstraintDef>; fn checkpoint_theater_for_write(&self) -> Result<CheckpointTheater>; fn graph_type_spec(&self) -> Result<Option<String>>; fn catalog_ddl(&self) -> Vec<String>;
}

Required Methods§

Source

fn commit_ts(&self) -> u64

Source

fn next_node_id(&self) -> i64

Source

fn next_rel_id(&self) -> i64

Source

fn live_node_count(&self) -> usize

Source

fn checkpoint_dirty(&self) -> CheckpointDirty

The ids changed since the previous take — one carrier (CheckpointDirty) for the pair, so an implementor spells the node/rel split once.

Source

fn all_node_ids_at(&self, ts: u64) -> Vec<NodeId>

Source

fn all_rel_ids_at(&self, ts: u64) -> Vec<RelId>

Source

fn node_at(&self, id: NodeId, ts: u64) -> Option<Node>

Source

fn rel_at(&self, id: RelId, ts: u64) -> Option<Relationship>

Source

fn node_checkpoint_bytes(&self, id: NodeId, ts: u64) -> Result<Option<u64>>

Source

fn rel_checkpoint_bytes(&self, id: RelId, ts: u64) -> Result<Option<u64>>

Source

fn named_indexes(&self) -> Vec<IndexDef>

Source

fn named_constraints(&self) -> Vec<ConstraintDef>

Source

fn checkpoint_theater_for_write(&self) -> Result<CheckpointTheater>

Source

fn graph_type_spec(&self) -> Result<Option<String>>

Source

fn catalog_ddl(&self) -> Vec<String>

SHOW-style catalog DDL the schema mirror writes beside a checkpoint.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§