Class MultiSourcePartitionedScheduler

java.lang.Object
io.trino.execution.scheduler.MultiSourcePartitionedScheduler
All Implemented Interfaces:
StageScheduler, Closeable, AutoCloseable

@NotThreadSafe public class MultiSourcePartitionedScheduler extends Object implements StageScheduler
  • Constructor Details

  • Method Details

    • start

      public void start()
      Description copied from interface: StageScheduler
      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.
      Specified by:
      start in interface StageScheduler
    • schedule

      public ScheduleResult schedule()
      Description copied from interface: StageScheduler
      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.
      Specified by:
      schedule in interface StageScheduler
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface StageScheduler