Skip to main content

HexastoreCatalog

Trait HexastoreCatalog 

Source
pub trait HexastoreCatalog: Send + Sync {
    // Required methods
    fn list_named_graphs(
        &self,
        snapshot: SnapshotId,
    ) -> impl Future<Output = Result<Vec<EncodedTerm>, Status>> + Send;
    fn add_named_graph(
        &self,
        graph: &EncodedTerm,
        commit_ts: CommitTs,
    ) -> impl Future<Output = Result<(), Status>> + Send;
}
Expand description

S-axis named-graph catalog (empty graphs included; never the RDF default graph).

Coordinators call S only. P/O implementations return UNIMPLEMENTED.

Required Methods§

Source

fn list_named_graphs( &self, snapshot: SnapshotId, ) -> impl Future<Output = Result<Vec<EncodedTerm>, Status>> + Send

Named-node graph IRIs visible at snapshot.

Source

fn add_named_graph( &self, graph: &EncodedTerm, commit_ts: CommitTs, ) -> impl Future<Output = Result<(), Status>> + Send

Insert an empty named graph, or no-op if already Present.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§