pub struct PropertyIndex { /* private fields */ }Expand description
Property index for nodes (maps property keys to values to node IDs)
Implementations§
Source§impl PropertyIndex
impl PropertyIndex
Sourcepub fn remove_node(&self, node: &Node)
pub fn remove_node(&self, node: &Node)
Remove a node from the index
Sourcepub fn get_nodes_by_property(
&self,
key: &str,
value: &PropertyValue,
) -> Vec<NodeId> ⓘ
pub fn get_nodes_by_property( &self, key: &str, value: &PropertyValue, ) -> Vec<NodeId> ⓘ
Get nodes by property key-value pair
Sourcepub fn get_nodes_with_property(&self, key: &str) -> Vec<NodeId> ⓘ
pub fn get_nodes_with_property(&self, key: &str) -> Vec<NodeId> ⓘ
Get all nodes that have a specific property key (regardless of value)
Sourcepub fn all_property_keys(&self) -> Vec<String>
pub fn all_property_keys(&self) -> Vec<String>
Get all property keys in the index
Trait Implementations§
Source§impl Clone for PropertyIndex
impl Clone for PropertyIndex
Source§fn clone(&self) -> PropertyIndex
fn clone(&self) -> PropertyIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PropertyIndex
impl Debug for PropertyIndex
Auto Trait Implementations§
impl Freeze for PropertyIndex
impl !RefUnwindSafe for PropertyIndex
impl Send for PropertyIndex
impl Sync for PropertyIndex
impl Unpin for PropertyIndex
impl !UnwindSafe for PropertyIndex
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request