Package io.trino.execution.scheduler
Class ScaledWriterScheduler
- java.lang.Object
-
- io.trino.execution.scheduler.ScaledWriterScheduler
-
- All Implemented Interfaces:
StageScheduler,Closeable,AutoCloseable
public class ScaledWriterScheduler extends Object implements StageScheduler
-
-
Constructor Summary
Constructors Constructor Description ScaledWriterScheduler(PipelinedStageExecution stage, Supplier<Collection<TaskStatus>> sourceTasksProvider, Supplier<Collection<TaskStatus>> writerTasksProvider, NodeSelector nodeSelector, ScheduledExecutorService executor, io.airlift.units.DataSize writerMinSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()ScheduleResultschedule()Schedules as much work as possible without blocking.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.execution.scheduler.StageScheduler
close
-
-
-
-
Constructor Detail
-
ScaledWriterScheduler
public ScaledWriterScheduler(PipelinedStageExecution stage, Supplier<Collection<TaskStatus>> sourceTasksProvider, Supplier<Collection<TaskStatus>> writerTasksProvider, NodeSelector nodeSelector, ScheduledExecutorService executor, io.airlift.units.DataSize writerMinSize)
-
-
Method Detail
-
finish
public void finish()
-
schedule
public ScheduleResult schedule()
Description copied from interface:StageSchedulerSchedules 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:
schedulein interfaceStageScheduler
-
-