Package io.trino.execution
Interface ManagedQueryExecution
- All Known Subinterfaces:
DispatchQuery
- All Known Implementing Classes:
FailedDispatchQuery,LocalDispatchQuery
public interface ManagedQueryExecution
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStateChangeListener(StateMachine.StateChangeListener<QueryState> stateChangeListener) Listener is always notified asynchronously using a dedicated notification thread pool so, care should be taken to avoid leakingthiswhen adding a listener in a constructor.voidgetState()io.airlift.units.Durationio.airlift.units.DataSizeio.airlift.units.DataSizebooleanisDone()void
-
Method Details
-
startWaitingForResources
void startWaitingForResources() -
fail
-
addStateChangeListener
Listener is always notified asynchronously using a dedicated notification thread pool so, care should be taken to avoid leakingthiswhen adding a listener in a constructor. Additionally, it is possible notifications are observed out of order due to the asynchronous execution. -
getSession
Session getSession() -
getUserMemoryReservation
io.airlift.units.DataSize getUserMemoryReservation() -
getTotalMemoryReservation
io.airlift.units.DataSize getTotalMemoryReservation() -
getTotalCpuTime
io.airlift.units.Duration getTotalCpuTime() -
getBasicQueryInfo
BasicQueryInfo getBasicQueryInfo() -
getFullQueryInfo
QueryInfo getFullQueryInfo() -
getState
QueryState getState() -
isDone
boolean isDone() -
getErrorCode
- Returns:
- Returns non-empty value iff error has occurred and query failed state is visible.
-