Struct graphannis_core::annostorage::inmemory::AnnoStorageImpl [−][src]
pub struct AnnoStorageImpl<T: Ord + Hash + MallocSizeOf + Default> { /* fields omitted */ }
Implementations
impl<'de_impl, T: Ord + Hash + Clone + Serialize + DeserializeOwned + MallocSizeOf + Default> AnnoStorageImpl<T>
impl<'de_impl, T: Ord + Hash + Clone + Serialize + DeserializeOwned + MallocSizeOf + Default> AnnoStorageImpl<T>
Trait Implementations
impl<T> AnnotationStorage<T> for AnnoStorageImpl<T> where
T: Ord + Hash + MallocSizeOf + Default + Clone + Send + Sync + Serialize + DeserializeOwned,
(T, Arc<AnnoKey>): Into<Match>,
impl<T> AnnotationStorage<T> for AnnoStorageImpl<T> where
T: Ord + Hash + MallocSizeOf + Default + Clone + Send + Sync + Serialize + DeserializeOwned,
(T, Arc<AnnoKey>): Into<Match>,
Insert an annotation anno
(with annotation key and value) for an item item
.
Remove the annotation given by its key
for a specific item
Returns the value for that annotation, if it existed. Read more
Get all qualified annotation names (including namespace) for a given annotation name
Get all annotations for an item
(node or edge).
Return the total number of annotations contained in this AnnotationStorage
.
Get the annotation for a given item
and the annotation key
.
Returns true
if the given item
has an annotation for the given key
.
Get the matching annotation keys for each item in the iterator. Read more
Return the number of annotations contained in this AnnotationStorage
filtered by name
and optional namespace (ns
).
fn exact_anno_search<'a>(
&'a self,
namespace: Option<&str>,
name: &str,
value: ValueSearch<&str>
) -> Box<dyn Iterator<Item = Match> + 'a>
fn exact_anno_search<'a>(
&'a self,
namespace: Option<&str>,
name: &str,
value: ValueSearch<&str>
) -> Box<dyn Iterator<Item = Match> + 'a>
Returns an iterator for all items that exactly match the given annotation constraints.
The annotation name
must be given as argument, the other arguments are optional. Read more
Returns an iterator for all items where the value matches the regular expression.
The annotation name
and the pattern
for the value must be given as argument, the
namespace
argument is optional and can be used as additional constraint. Read more
Get all the annotation keys of a node, filtered by the optional namespace (ns
) and name
.
Estimate the number of results for an annotation exact search for a given an inclusive value range. Read more
Estimate the number of results for an annotation regular expression search for a given pattern. Read more
Estimate the most frequent value for a given annotation name
with an optional namespace (ns
). Read more
Return a list of all existing values for a given annotation key
.
If the most_frequent_first
parameter is true, the results are sorted by their frequency. Read more
Get all the annotation keys which are part of this annotation storage
Return the item with the largest item which has an annotation value in this annotation storage. Read more
(Re-) calculate the internal statistics needed for estimating annotation values. Read more
Load the annotation from an external location
.
Save the current annotation to a location
on the disk, but do not remember this location.
Returns the “default value” for a type. Read more
impl<'de, T: Ord + Hash + MallocSizeOf + Default> Deserialize<'de> for AnnoStorageImpl<T> where
T: Deserialize<'de>,
impl<'de, T: Ord + Hash + MallocSizeOf + Default> Deserialize<'de> for AnnoStorageImpl<T> where
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Ord + Hash + MallocSizeOf + Default> MallocSizeOf for AnnoStorageImpl<T> where
T: MallocSizeOf,
impl<T: Ord + Hash + MallocSizeOf + Default> MallocSizeOf for AnnoStorageImpl<T> where
T: MallocSizeOf,
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl<T: Ord + Hash + MallocSizeOf + Default> Serialize for AnnoStorageImpl<T> where
T: Serialize,
impl<T: Ord + Hash + MallocSizeOf + Default> Serialize for AnnoStorageImpl<T> where
T: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for AnnoStorageImpl<T> where
T: RefUnwindSafe,
impl<T> Send for AnnoStorageImpl<T> where
T: Send,
impl<T> Sync for AnnoStorageImpl<T> where
T: Sync,
impl<T> Unpin for AnnoStorageImpl<T> where
T: Unpin,
impl<T> UnwindSafe for AnnoStorageImpl<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more