Package io.prestosql.execution.scheduler
Class FixedCountScheduler
- java.lang.Object
-
- io.prestosql.execution.scheduler.FixedCountScheduler
-
- All Implemented Interfaces:
StageScheduler
,Closeable
,AutoCloseable
public class FixedCountScheduler extends Object implements StageScheduler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FixedCountScheduler.TaskScheduler
-
Constructor Summary
Constructors Constructor Description FixedCountScheduler(FixedCountScheduler.TaskScheduler taskScheduler, List<InternalNode> partitionToNode)
FixedCountScheduler(SqlStageExecution stage, List<InternalNode> partitionToNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduleResult
schedule()
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.prestosql.execution.scheduler.StageScheduler
close
-
-
-
-
Constructor Detail
-
FixedCountScheduler
public FixedCountScheduler(SqlStageExecution stage, List<InternalNode> partitionToNode)
-
FixedCountScheduler
public FixedCountScheduler(FixedCountScheduler.TaskScheduler taskScheduler, List<InternalNode> partitionToNode)
-
-
Method Detail
-
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 interfaceStageScheduler
-
-