Package io.trino.execution.scheduler
Interface StageScheduler
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
FixedCountScheduler,FixedSourcePartitionedScheduler,ScaledWriterScheduler
public interface StageScheduler extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()ScheduleResultschedule()Schedules as much work as possible without blocking.
-
-
-
Method Detail
-
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
-
-