crates/kleene-ballista/src/lib.rs
//! kleene over machines on Ballista: transport only.
//!
//! The rounds, the kernels, the split and the central index are kleene's core
//! ([`kleene_graph::ReachPart`], [`kleene_graph::Split`], [`kleene_index::Central`]); one
//! machine is the same code with one part. This crate carries them over a Ballista cluster
//! (lane kd's fork `nordisk/datafusion-ballista`, branch `nordisk/kleene`):
//!
//! | Piece | What it carries | Where |
//! |---|---|---|
//! | [`codec::KleeneCodec`] | kleene's operators in a plan, Ballista's own for the rest | client, scheduler, executors |
//! | [`state`] | a part's graph, split once per executor and kept for every job (executor-long state); a query's part side between its rounds (job state) | executors (the fork's kept state) |
//! | [`rules::KleeneRules`] | the key a part's state is kept under and the executor of each part (the central index's placement) | scheduler |
//! | [`route`] | a part's route value: DataFusion's hash shuffle sends it to the part's partition | client, executors |
//! | [`exec::StepExec`] | one round of a part: what arrived in, the core's step, the border sends out combined and compact, one row per target part | executors |
//! | [`exec::CollectExec`] | each part's answer after the rounds, same job | executors |
//! | [`client::Cluster`] | a query as one job: the rounds (the fork's loop: a stage per round, sends through the Flight shuffle), then the collect; the central index places the sources and wakes only the parts they can reach | client |
//! | [`whole`] | Distributed v1.1, every machine holds the whole graph: one search cut in core-weighted slices ([`whole::SliceExec`], only each level's new vertices travel, to every machine), many searches handed out whole and weak components whole on one machine ([`whole::AnswerExec`]), loading ahead | executors |
//! | [`stats`] | where a job's time went, from the scheduler's REST view (rounds, tasks, step and fetch time, bytes) | client, for the measured runs |
//!
//! Not in kleene's default build: the crate is its own workspace, `publish = false` while it
//! depends on the fork by git.
pub mod client;
pub mod codec;
pub mod exec;
pub mod route;
pub mod rules;
pub mod spec;
pub mod state;
pub mod stats;
pub mod whole;
pub use client::{ClosureRun, Cluster, Prepared, Run, WholeGraph, WholeRun};
pub use codec::KleeneCodec;
pub use exec::{CollectExec, Query, StepExec};
pub use rules::KleeneRules;
pub use spec::{GraphSpec, Key};