Type Definition graphannis::graph::NodeID [−][src]
type NodeID = u64;
Unique internal identifier for a single node.
Trait Implementations
impl AnnotationStorage<NodeID> for Graph
[src]
impl AnnotationStorage<NodeID> for Graph
fn get_annotations_for_item(&self, item: &NodeID) -> Vec<Annotation>
[src]
fn get_annotations_for_item(&self, item: &NodeID) -> Vec<Annotation>
Get all annotations for an item
(node or edge).
fn number_of_annotations(&self) -> usize
[src]
fn number_of_annotations(&self) -> usize
Return the total number of annotations contained in this AnnotationStorage
.
fn number_of_annotations_by_name(
&self,
ns: Option<String>,
name: String
) -> usize
[src]
fn number_of_annotations_by_name(
&self,
ns: Option<String>,
name: String
) -> usize
Return the number of annotations contained in this AnnotationStorage
filtered by name
and optional namespace (ns
).
ⓘImportant traits for Box<R>fn exact_anno_search<'a>(
&'a self,
namespace: Option<String>,
name: String,
value: Option<String>
) -> Box<Iterator<Item = Match> + 'a>
[src]
fn exact_anno_search<'a>(
&'a self,
namespace: Option<String>,
name: String,
value: Option<String>
) -> Box<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
ⓘImportant traits for Box<R>fn regex_anno_search<'a>(
&'a self,
namespace: Option<String>,
name: String,
pattern: &str
) -> Box<Iterator<Item = Match> + 'a>
[src]
fn regex_anno_search<'a>(
&'a self,
namespace: Option<String>,
name: String,
pattern: &str
) -> Box<Iterator<Item = Match> + 'a>
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
fn guess_max_count(
&self,
ns: Option<String>,
name: String,
lower_val: &str,
upper_val: &str
) -> usize
[src]
fn guess_max_count(
&self,
ns: Option<String>,
name: String,
lower_val: &str,
upper_val: &str
) -> usize
Estimate the number of results for an annotation exact search for a given an inclusive value range. Read more
fn guess_max_count_regex(
&self,
ns: Option<String>,
name: String,
pattern: &str
) -> usize
[src]
fn guess_max_count_regex(
&self,
ns: Option<String>,
name: String,
pattern: &str
) -> usize
Estimate the number of results for an annotation regular expression search for a given pattern. Read more
fn get_all_values(&self, key: &AnnoKey, most_frequent_first: bool) -> Vec<&str>
[src]
fn get_all_values(&self, key: &AnnoKey, most_frequent_first: bool) -> Vec<&str>
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
fn annotation_keys(&self) -> Vec<AnnoKey>
[src]
fn annotation_keys(&self) -> Vec<AnnoKey>
Get all the annotation keys which are part of this annotation storage