Package io.trino.execution.scheduler
Interface StageScheduler
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
FixedCountScheduler,FixedSourcePartitionedScheduler,MultiSourcePartitionedScheduler,ScaledWriterScheduler
-
Method Details
-
start
default void start()Called by the query scheduler when the scheduling process begins. This method is called before the ExecutionSchedule takes a decision to schedule a stage but after the query scheduling has been fully initialized. Within this method the scheduler may decide to schedule tasks that are necessary for query execution to make progress. For example the scheduler may decide to schedule a task without assigning any splits to unblock dynamic filter collection. -
schedule
ScheduleResult schedule()Schedules as much work as possible without blocking. The schedule results is a hint to the query scheduler if and when the stage scheduler should be invoked again. It is important to note that this is only a hint and the query scheduler may call the schedule method at any time. -
close
default void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-