pub trait NodeAnnotationStorage: AnnotationStorage<NodeID> {
    // Required methods
    fn get_node_id_from_name(&self, node_name: &str) -> Result<Option<NodeID>>;
    fn has_node_name(&self, node_name: &str) -> Result<bool>;
}
Expand description

An annotation storage for nodes.

Required Methods§

source

fn get_node_id_from_name(&self, node_name: &str) -> Result<Option<NodeID>>

Return the internal NodeID for the node that has the given node_name as annis::node_name annotation.

source

fn has_node_name(&self, node_name: &str) -> Result<bool>

Returns true if there is a node with the given node_name as value for the annis::node_name annotation.

Implementors§

source§

impl NodeAnnotationStorage for graphannis_core::annostorage::inmemory::AnnoStorageImpl<NodeID>

source§

impl NodeAnnotationStorage for graphannis_core::annostorage::ondisk::AnnoStorageImpl<NodeID>