Skip to main content

Crate nodedb_physical

Crate nodedb_physical 

Source
Expand description

Shared physical-plan layer for NodeDB.

Owns the PhysicalTask IR and the SqlPlan → PhysicalPlan converter. Origin (server) and Lite (embedded) both consume the same PhysicalTask; per-deployment executors implement PhysicalTaskVisitor against their own storage backends. Origin-specific concerns (vShard routing, MessagePack pre-serialisation, cross-plane envelope fields) live in an Origin-side wrapper that contains a PhysicalTask, not in this crate.

Re-exports§

pub use convert_context::SharedConvertContext;
pub use error::ConvertError;
pub use surrogate::SurrogateAssignError;
pub use surrogate::SurrogateAssigner;
pub use visitor::PhysicalTaskVisitor;
pub use visitor::dispatch;

Modules§

convert_context
Deployment-neutral context threaded through the shared SqlPlan → PhysicalPlan converter helpers in crate::convert.
error
Error type for the shared SqlPlan → PhysicalPlan converter helpers.
physical_plan
Physical plan types dispatched from Control Plane to Data Plane.
physical_task
surrogate
Surrogate-allocation contract used by the shared SqlPlan → PhysicalPlan converter. Origin’s WAL-durable, Raft-replicated allocator implements this trait; Lite supplies its own local-monotonic implementation.
visitor
Executor parity contract for PhysicalPlan.