Skip to main content

GraphStoreServiceImpl

Struct GraphStoreServiceImpl 

Source
pub struct GraphStoreServiceImpl<S> { /* private fields */ }

Implementations§

Source§

impl<S> GraphStoreServiceImpl<S>

Source

pub fn new(store: Arc<S>) -> Self

Trait Implementations§

Source§

impl<S> GraphStoreService for GraphStoreServiceImpl<S>
where S: GraphStore + Send + Sync + 'static,

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 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 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 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_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_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 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 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
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 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_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 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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more