Skip to main content

GraphStoreService

Trait GraphStoreService 

Source
pub trait GraphStoreService:
    Send
    + Sync
    + 'static {
Show 18 methods // Required methods fn insert_node<'life0, 'async_trait>( &'life0 self, request: Request<InsertNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertNodeResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn insert_node_with_vector<'life0, 'async_trait>( &'life0 self, request: Request<InsertNodeWithVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertNodeWithVectorResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn insert_nodes_with_vector<'life0, 'async_trait>( &'life0 self, request: Request<InsertNodesWithVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertNodesWithVectorResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_node<'life0, 'async_trait>( &'life0 self, request: Request<GetNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delete_node<'life0, 'async_trait>( &'life0 self, request: Request<DeleteNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteNodeResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn insert_edge<'life0, 'async_trait>( &'life0 self, request: Request<InsertEdgeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertEdgeResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn insert_edge_with_vector<'life0, 'async_trait>( &'life0 self, request: Request<InsertEdgeWithVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertEdgeWithVectorResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn insert_edges_with_vector<'life0, 'async_trait>( &'life0 self, request: Request<InsertEdgesWithVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertEdgesWithVectorResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_edge<'life0, 'async_trait>( &'life0 self, request: Request<GetEdgeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetEdgeResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_edges_for_node<'life0, 'async_trait>( &'life0 self, request: Request<GetEdgesForNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetEdgesForNodeResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_edges_targeting_node<'life0, 'async_trait>( &'life0 self, request: Request<GetEdgesTargetingNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetEdgesTargetingNodeResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delete_edge<'life0, 'async_trait>( &'life0 self, request: Request<DeleteEdgeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteEdgeResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_edge_vector<'life0, 'async_trait>( &'life0 self, request: Request<GetEdgeVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetEdgeVectorResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_node_vector<'life0, 'async_trait>( &'life0 self, request: Request<GetNodeVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeVectorResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn set_name_mapping<'life0, 'async_trait>( &'life0 self, request: Request<SetNameMappingRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SetNameMappingResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_name_mapping<'life0, 'async_trait>( &'life0 self, request: Request<GetNameMappingRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetNameMappingResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delete_name_mapping<'life0, 'async_trait>( &'life0 self, request: Request<DeleteNameMappingRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteNameMappingResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn search<'life0, 'async_trait>( &'life0 self, request: Request<SearchRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with GraphStoreServiceServer.

Required Methods§

Source

fn insert_node<'life0, 'async_trait>( &'life0 self, request: Request<InsertNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertNodeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Insert a node without a vector

Source

fn insert_node_with_vector<'life0, 'async_trait>( &'life0 self, request: Request<InsertNodeWithVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertNodeWithVectorResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Insert a node with its embedding vector

Source

fn insert_nodes_with_vector<'life0, 'async_trait>( &'life0 self, request: Request<InsertNodesWithVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertNodesWithVectorResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Batch insert nodes with their embedding vectors

Source

fn get_node<'life0, 'async_trait>( &'life0 self, request: Request<GetNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a node by its ID

Source

fn delete_node<'life0, 'async_trait>( &'life0 self, request: Request<DeleteNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteNodeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete a node by its ID

Source

fn insert_edge<'life0, 'async_trait>( &'life0 self, request: Request<InsertEdgeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertEdgeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Insert an edge without a vector

Source

fn insert_edge_with_vector<'life0, 'async_trait>( &'life0 self, request: Request<InsertEdgeWithVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertEdgeWithVectorResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Insert an edge with its embedding vector

Source

fn insert_edges_with_vector<'life0, 'async_trait>( &'life0 self, request: Request<InsertEdgesWithVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertEdgesWithVectorResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Batch insert edges with their embedding vectors

Source

fn get_edge<'life0, 'async_trait>( &'life0 self, request: Request<GetEdgeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetEdgeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get an edge by its ID

Source

fn get_edges_for_node<'life0, 'async_trait>( &'life0 self, request: Request<GetEdgesForNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetEdgesForNodeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get all edges originating from a node

Source

fn get_edges_targeting_node<'life0, 'async_trait>( &'life0 self, request: Request<GetEdgesTargetingNodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetEdgesTargetingNodeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get all edges targeting a node

Source

fn delete_edge<'life0, 'async_trait>( &'life0 self, request: Request<DeleteEdgeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteEdgeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete an edge by its ID

Source

fn get_edge_vector<'life0, 'async_trait>( &'life0 self, request: Request<GetEdgeVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetEdgeVectorResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the embedding vector for an edge

Source

fn get_node_vector<'life0, 'async_trait>( &'life0 self, request: Request<GetNodeVectorRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeVectorResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the embedding vector for a node

Source

fn set_name_mapping<'life0, 'async_trait>( &'life0 self, request: Request<SetNameMappingRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SetNameMappingResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Set a name-to-node mapping for a given kind

Source

fn get_name_mapping<'life0, 'async_trait>( &'life0 self, request: Request<GetNameMappingRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetNameMappingResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the node ID for a name mapping

Source

fn delete_name_mapping<'life0, 'async_trait>( &'life0 self, request: Request<DeleteNameMappingRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteNameMappingResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete a name-to-node mapping

Source

fn search<'life0, 'async_trait>( &'life0 self, request: Request<SearchRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Perform a vector similarity search over nodes and/or edges

Implementors§