pub trait Runner: Send + Sync {
// Required methods
fn fit(
&self,
plan: &ExecutionPlan,
filters: &FilterLibrary,
cache: &dyn CacheStore,
event_bus: &Arc<EventBus>,
input: &Value,
y: Option<&Value>,
) -> Result<(Value, HashMap<String, Value>)>;
fn forward(
&self,
plan: &ExecutionPlan,
filters: &FilterLibrary,
cache: &dyn CacheStore,
event_bus: &Arc<EventBus>,
input: &Value,
) -> Result<Value>;
}Expand description
Contract for executing plans. Every execution mode (local, remote, stream) implements this trait. One interface, polymorphic dispatch.
Required Methods§
Sourcefn fit(
&self,
plan: &ExecutionPlan,
filters: &FilterLibrary,
cache: &dyn CacheStore,
event_bus: &Arc<EventBus>,
input: &Value,
y: Option<&Value>,
) -> Result<(Value, HashMap<String, Value>)>
fn fit( &self, plan: &ExecutionPlan, filters: &FilterLibrary, cache: &dyn CacheStore, event_bus: &Arc<EventBus>, input: &Value, y: Option<&Value>, ) -> Result<(Value, HashMap<String, Value>)>
Train: fit each filter, forward to propagate outputs. Returns (last output, all node outputs).
Sourcefn forward(
&self,
plan: &ExecutionPlan,
filters: &FilterLibrary,
cache: &dyn CacheStore,
event_bus: &Arc<EventBus>,
input: &Value,
) -> Result<Value>
fn forward( &self, plan: &ExecutionPlan, filters: &FilterLibrary, cache: &dyn CacheStore, event_bus: &Arc<EventBus>, input: &Value, ) -> Result<Value>
Inference: forward data through the compiled plan.