Trait indradb_plugin_host::util::VertexMapper
source · [−]pub trait VertexMapper: Send + Sync + 'static {
fn map(&self, vertex: Vertex) -> Result<(), Error>;
fn num_threads(&self) -> usize { ... }
fn query_limit(&self) -> u32 { ... }
fn t_filter(&self) -> Option<Identifier> { ... }
}Expand description
Trait for running an operation on all vertices in a datastore.
Required Methods
Provided Methods
fn num_threads(&self) -> usize
fn num_threads(&self) -> usize
The number of threads that should execute the map operation.
fn query_limit(&self) -> u32
fn query_limit(&self) -> u32
How many vertices to pull at a time.
fn t_filter(&self) -> Option<Identifier>
fn t_filter(&self) -> Option<Identifier>
If specified, only vertices of the specified type will be mapped.