Skip to main content

PregelProgramProvider

Trait PregelProgramProvider 

Source
pub trait PregelProgramProvider: Send + Sync {
    // Required method
    fn signature(&self) -> &PregelSignature;

    // Provided method
    fn halt(&self, _superstep: u64, _stats: &PregelStats) -> bool { ... }
}
Expand description

A Pregel-style vertex program plugin.

Detailed init / compute / combine signatures will land alongside the Pregel executor in uni-algo during M5c. The trait is in place so plugin authors can build against the surface from M1; full integration follows.

Required Methods§

Source

fn signature(&self) -> &PregelSignature

Static signature.

Provided Methods§

Source

fn halt(&self, _superstep: u64, _stats: &PregelStats) -> bool

Optional global halt condition consulted between supersteps.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§