Skip to main content

EntityStoreT

Trait EntityStoreT 

Source
pub trait EntityStoreT: Send + Sync {
    // Required methods
    fn entity_names_by_type(&self, entity_type: &EntityType) -> Vec<String>;
    fn top_entity_info(&self, limit: usize) -> Vec<(String, EntityType)>;
}
Expand description

Trait for querying an entity store.

Provides access to entity information without coupling to a specific storage implementation.

Required Methods§

Source

fn entity_names_by_type(&self, entity_type: &EntityType) -> Vec<String>

Get entity names that match a given type.

Source

fn top_entity_info(&self, limit: usize) -> Vec<(String, EntityType)>

Get the top entities by mention count, returning (name, type) pairs.

Implementors§