pub struct PlanNodeResolution { /* private fields */ }Expand description
Per-node trusted physical resolution. It supplies physical bindings and a provider estimator result, but cannot provide memory totals, compatibility reports, plan identities, or hashes.
Implementations§
Source§impl PlanNodeResolution
impl PlanNodeResolution
Sourcepub fn resolve<P: RuntimePolicy>(
family: &PreparedModelFamily,
catalog: &CapabilityCatalog,
policy: &P,
registry: &OperationPlanningHandle<'_>,
node_id: NodeId,
values: Vec<ResolvedValueBinding>,
required_capabilities: BTreeSet<CapabilityId>,
preferred_provider: Option<ProviderId>,
) -> Result<Self, VNextError>
pub fn resolve<P: RuntimePolicy>( family: &PreparedModelFamily, catalog: &CapabilityCatalog, policy: &P, registry: &OperationPlanningHandle<'_>, node_id: NodeId, values: Vec<ResolvedValueBinding>, required_capabilities: BTreeSet<CapabilityId>, preferred_provider: Option<ProviderId>, ) -> Result<Self, VNextError>
Resolves one node through the typed planning registry. Provider
selection is core-owned; preferred_provider is only a compatibility
preference and cannot inject a provider or resource estimate.
pub fn node_id(&self) -> &NodeId
pub fn values(&self) -> &[ResolvedValueBinding]
pub fn required_capabilities(&self) -> &BTreeSet<CapabilityId>
pub fn preferred_provider(&self) -> Option<&ProviderId>
pub fn provider_resource_candidates(&self) -> &[ProviderResourcePlan]
pub fn provider_resolution_rejections( &self, ) -> &BTreeMap<ProviderId, PlanProviderRejectReason>
Trait Implementations§
Source§impl Clone for PlanNodeResolution
impl Clone for PlanNodeResolution
Source§fn clone(&self) -> PlanNodeResolution
fn clone(&self) -> PlanNodeResolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlanNodeResolution
impl Debug for PlanNodeResolution
impl Eq for PlanNodeResolution
Source§impl PartialEq for PlanNodeResolution
impl PartialEq for PlanNodeResolution
impl StructuralPartialEq for PlanNodeResolution
Auto Trait Implementations§
impl Freeze for PlanNodeResolution
impl RefUnwindSafe for PlanNodeResolution
impl Send for PlanNodeResolution
impl Sync for PlanNodeResolution
impl Unpin for PlanNodeResolution
impl UnsafeUnpin for PlanNodeResolution
impl UnwindSafe for PlanNodeResolution
Blanket Implementations§
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