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

The map operation.

Provided Methods

The number of threads that should execute the map operation.

How many vertices to pull at a time.

If specified, only vertices of the specified type will be mapped.

Implementors