pub struct PlanGraph {
pub version: PlanGraphVersion,
pub nodes: Vec<PlanNode>,
pub edges: Vec<PlanEdge>,
pub root_nodes: Vec<PlanNodeId>,
pub annotations: PlanAnnotations,
}Expand description
Immutable DAG describing the planner output.
Fields§
§version: PlanGraphVersion§nodes: Vec<PlanNode>§edges: Vec<PlanEdge>§root_nodes: Vec<PlanNodeId>§annotations: PlanAnnotationsImplementations§
Source§impl PlanGraph
impl PlanGraph
Sourcepub fn builder() -> PlanGraphBuilder
pub fn builder() -> PlanGraphBuilder
Construct a new PlanGraphBuilder.
pub fn is_empty(&self) -> bool
pub fn version(&self) -> PlanGraphVersion
pub fn root_nodes(&self) -> &[PlanNodeId]
pub fn validate(&self) -> PlanGraphResult<()>
pub fn to_dot(&self) -> PlanGraphResult<String>
pub fn to_json(&self) -> PlanGraphResult<String>
pub fn from_json(json: &str) -> PlanGraphResult<Self>
pub fn topological_order(&self) -> PlanGraphResult<Vec<PlanNodeId>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlanGraph
impl<'de> Deserialize<'de> for PlanGraph
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PlanGraph
Auto Trait Implementations§
impl Freeze for PlanGraph
impl RefUnwindSafe for PlanGraph
impl Send for PlanGraph
impl Sync for PlanGraph
impl Unpin for PlanGraph
impl UnsafeUnpin for PlanGraph
impl UnwindSafe for PlanGraph
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more