pub struct VertexPropertyIndex { /* private fields */ }Expand description
Immutable equality index over selected vertex properties in one named graph.
Missing properties are not indexed, while an explicitly stored
Value::Null remains queryable. Value equality follows Value’s total
ordering, including its cross-numeric equality rules, so indexed lookup and
relational equality agree.
Implementations§
Source§impl VertexPropertyIndex
impl VertexPropertyIndex
pub fn build<G: GraphStore>( store: &G, graph: &str, properties: &[&str], ) -> GraphStoreResult<Self>
pub fn has_property(&self, property: &str) -> bool
pub fn lookup_eq( &self, property: &str, value: &Value, ) -> Option<&BTreeSet<VertexId>>
pub fn property_names(&self) -> impl Iterator<Item = &str>
Trait Implementations§
Source§impl Clone for VertexPropertyIndex
impl Clone for VertexPropertyIndex
Source§fn clone(&self) -> VertexPropertyIndex
fn clone(&self) -> VertexPropertyIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VertexPropertyIndex
impl Debug for VertexPropertyIndex
Source§impl Default for VertexPropertyIndex
impl Default for VertexPropertyIndex
Source§fn default() -> VertexPropertyIndex
fn default() -> VertexPropertyIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VertexPropertyIndex
impl RefUnwindSafe for VertexPropertyIndex
impl Send for VertexPropertyIndex
impl Sync for VertexPropertyIndex
impl Unpin for VertexPropertyIndex
impl UnsafeUnpin for VertexPropertyIndex
impl UnwindSafe for VertexPropertyIndex
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