pub struct QueryInvocation { /* private fields */ }Expand description
One executable invocation of a reusable validated plan.
The invocation carries values and an operation; the plan carries all reusable structure. Binding is by exact plan fingerprint, so a plan edit invalidates every outstanding invocation instead of silently reshaping it.
Implementations§
Source§impl QueryInvocation
impl QueryInvocation
Sourcepub fn new(
plan: &QueryPlan,
operation: QueryOperation,
inputs: Vec<InputRow>,
) -> Result<Self, Diagnostic>
pub fn new( plan: &QueryPlan, operation: QueryOperation, inputs: Vec<InputRow>, ) -> Result<Self, Diagnostic>
Validate one rectangular input batch against its exact plan.
Sourcepub const fn operation(&self) -> QueryOperation
pub const fn operation(&self) -> QueryOperation
Return the requested operation.
Sourcepub const fn plan_fingerprint(&self) -> &QueryPlanFingerprint
pub const fn plan_fingerprint(&self) -> &QueryPlanFingerprint
Return the exact plan fingerprint this invocation binds.
Sourcepub fn binds(&self, plan: &QueryPlan) -> Result<bool, Diagnostic>
pub fn binds(&self, plan: &QueryPlan) -> Result<bool, Diagnostic>
Return whether this invocation still binds the supplied plan.
Sourcepub fn transport_capabilities(&self) -> CapabilitySet
pub fn transport_capabilities(&self) -> CapabilitySet
Return capabilities this invocation’s transport requires beyond the plan’s own.
A multi-row input batch rides the native given transport. A single
row with an absent optional cell also requires given, because inline
literal substitution has no absence spelling. Datetime-tz inputs use
given at every cardinality so named and fixed/second-offset values
have one exact lowering. Both client preflight and executor admission
check this set against the advertisement so untransportable
invocations fail before any I/O or provider resource.
Trait Implementations§
Source§impl Clone for QueryInvocation
impl Clone for QueryInvocation
Source§fn clone(&self) -> QueryInvocation
fn clone(&self) -> QueryInvocation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more