pub struct AnnoStorageImpl<T> where
    T: FixedSizeKeySerializer + Send + Sync + MallocSizeOf + Clone + Serialize + DeserializeOwned
{ /* private fields */ }
Expand description

An on-disk implementation of an annotation storage.

Implementations

Trait Implementations

Insert an annotation anno (with annotation key and value) for an item item.

Get all annotations for an item (node or edge).

Remove the annotation given by its key for a specific item Returns the value for that annotation, if it existed. Read more

Remove all annotations.

Get all qualified annotation names (including namespace) for a given annotation name

Return the total number of annotations contained in this AnnotationStorage.

Return true if there are no annotations 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).

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.

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.