Package io.trino.execution.scheduler
Class ScaledWriterScheduler
java.lang.Object
io.trino.execution.scheduler.ScaledWriterScheduler
- All Implemented Interfaces:
StageScheduler,Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionScaledWriterScheduler(StageExecution stage, Supplier<Collection<TaskStatus>> sourceTasksProvider, Supplier<Collection<TaskStatus>> writerTasksProvider, NodeSelector nodeSelector, ScheduledExecutorService executor, io.airlift.units.DataSize writerScalingMinDataProcessed, int maxWriterNodeCount) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.execution.scheduler.StageScheduler
close, start
-
Constructor Details
-
ScaledWriterScheduler
public ScaledWriterScheduler(StageExecution stage, Supplier<Collection<TaskStatus>> sourceTasksProvider, Supplier<Collection<TaskStatus>> writerTasksProvider, NodeSelector nodeSelector, ScheduledExecutorService executor, io.airlift.units.DataSize writerScalingMinDataProcessed, int maxWriterNodeCount)
-
-
Method Details
-
finish
public void finish() -
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
-