pub struct QueryHandle { /* private fields */ }Expand description
RAII admission handle for one native query.
Implementations§
Source§impl QueryHandle
impl QueryHandle
Sourcepub fn admission_request_id(&self) -> AdmissionRequestId
pub fn admission_request_id(&self) -> AdmissionRequestId
Stable service-local request id assigned for this admission attempt.
Sourcepub fn admission_sequence(&self) -> u64
pub fn admission_sequence(&self) -> u64
Monotonic service-local admission sequence assigned when this handle was admitted.
Sourcepub fn admission_wait(&self) -> Duration
pub fn admission_wait(&self) -> Duration
Time spent waiting in the service admission queue.
Sourcepub fn admission_wait_fact(&self) -> Option<AttemptAdmissionWaitFact>
pub fn admission_wait_fact(&self) -> Option<AttemptAdmissionWaitFact>
Returns the final controller-owned queue state for this queued admission, when the handle was admitted through the bounded queue. Direct non-queued admission intentionally has no such fact.
Sourcepub fn device_budget_bytes(&self) -> u64
pub fn device_budget_bytes(&self) -> u64
Device-memory budget slice assigned to this query.
Sourcepub fn device_ordinal(&self) -> usize
pub fn device_ordinal(&self) -> usize
CUDA device ordinal selected for this query.
Sourcepub fn join_fragment(&self, fragment: &AttemptCapabilityEvidence) -> Result<()>
pub fn join_fragment(&self, fragment: &AttemptCapabilityEvidence) -> Result<()>
Joins a fragment planned after this attempt’s claim to its grant.
The fragment runs under the same grant when the granted device provides every capability it requires; its plan identity is then added to what the attempt may execute. The queue and the ledger do not change. A device that lacks a capability, or a released handle, returns a typed error.
Sourcepub fn grant_identity(&self) -> Result<GrantIdentity>
pub fn grant_identity(&self) -> Result<GrantIdentity>
Immutable attempt and ledger generation committed for this admission.
Sourcepub fn memory_control_policy(&self) -> MemoryControlPolicy
pub fn memory_control_policy(&self) -> MemoryControlPolicy
Bounded memory policy this handle will use for native execution.
Sourcepub fn source_scheduler_policy(&self) -> SourceSchedulerPolicy
pub fn source_scheduler_policy(&self) -> SourceSchedulerPolicy
Source scheduler policy copied into the admitted execution context.
Sourcepub fn source_chunk_planning_mode(&self) -> SourceChunkPlanningMode
pub fn source_chunk_planning_mode(&self) -> SourceChunkPlanningMode
Source chunk planning mode copied into the admitted execution context.
Sourcepub fn statistical_aggregate_execution_mode(
&self,
) -> StatisticalAggregateExecutionMode
pub fn statistical_aggregate_execution_mode( &self, ) -> StatisticalAggregateExecutionMode
Floating statistical aggregate execution contract assigned to this admitted query.
Sourcepub fn aggregate_strategy_execution_options(
&self,
) -> AggregateStrategyExecutionOptions
pub fn aggregate_strategy_execution_options( &self, ) -> AggregateStrategyExecutionOptions
Grouped aggregate strategy execution policy assigned to this admitted query.
Sourcepub fn source_chunk_planning_options(&self) -> SourceChunkPlanningOptions
pub fn source_chunk_planning_options(&self) -> SourceChunkPlanningOptions
Expert source chunk planning policy assigned to this admitted query.
Sourcepub fn acquire_context(&self) -> Result<AdmittedQueryContext>
pub fn acquire_context(&self) -> Result<AdmittedQueryContext>
Acquires an admitted execution context from the service stream pool.
Sourcepub async fn acquire_context_with_cancellation_async(
self: &Arc<Self>,
cancellation: ExecutionCancellation,
) -> Result<AdmittedQueryContext>
pub async fn acquire_context_with_cancellation_async( self: &Arc<Self>, cancellation: ExecutionCancellation, ) -> Result<AdmittedQueryContext>
Acquires an admitted execution context on this query’s device executor.
Sourcepub fn gpu_executor(&self) -> Result<GpuExecutorLease>
pub fn gpu_executor(&self) -> Result<GpuExecutorLease>
Opaque lifecycle-bound executor for synchronous GPU work on this query’s selected device.
Sourcepub fn acquire_context_with_cancellation(
&self,
cancellation: ExecutionCancellation,
) -> Result<AdmittedQueryContext>
pub fn acquire_context_with_cancellation( &self, cancellation: ExecutionCancellation, ) -> Result<AdmittedQueryContext>
Acquires an admitted execution context that observes caller-supplied cooperative cancellation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for QueryHandle
impl !UnwindSafe for QueryHandle
impl Freeze for QueryHandle
impl Send for QueryHandle
impl Sync for QueryHandle
impl Unpin for QueryHandle
impl UnsafeUnpin for QueryHandle
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more