Interface ManagedQueryExecution

All Known Subinterfaces:
DispatchQuery
All Known Implementing Classes:
FailedDispatchQuery, LocalDispatchQuery

public interface ManagedQueryExecution
  • Method Details

    • startWaitingForResources

      void startWaitingForResources()
    • fail

      void fail(Throwable cause)
    • addStateChangeListener

      void addStateChangeListener(StateMachine.StateChangeListener<QueryState> stateChangeListener)
      Listener is always notified asynchronously using a dedicated notification thread pool so, care should be taken to avoid leaking this when 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

      Optional<ErrorCode> getErrorCode()
      Returns:
      Returns non-empty value iff error has occurred and query failed state is visible.