Package io.prestosql.execution.scheduler
Class FixedSourcePartitionedScheduler
- java.lang.Object
-
- io.prestosql.execution.scheduler.FixedSourcePartitionedScheduler
-
- All Implemented Interfaces:
StageScheduler
,Closeable
,AutoCloseable
public class FixedSourcePartitionedScheduler extends Object implements StageScheduler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FixedSourcePartitionedScheduler.BucketedSplitPlacementPolicy
-
Constructor Summary
Constructors Constructor Description FixedSourcePartitionedScheduler(SqlStageExecution stage, Map<PlanNodeId,SplitSource> splitSources, StageExecutionDescriptor stageExecutionDescriptor, List<PlanNodeId> schedulingOrder, List<InternalNode> nodes, BucketNodeMap bucketNodeMap, int splitBatchSize, OptionalInt concurrentLifespansPerTask, NodeSelector nodeSelector, List<ConnectorPartitionHandle> partitionHandles, DynamicFilterService dynamicFilterService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ScheduleResult
schedule()
Schedules as much work as possible without blocking.
-
-
-
Constructor Detail
-
FixedSourcePartitionedScheduler
public FixedSourcePartitionedScheduler(SqlStageExecution stage, Map<PlanNodeId,SplitSource> splitSources, StageExecutionDescriptor stageExecutionDescriptor, List<PlanNodeId> schedulingOrder, List<InternalNode> nodes, BucketNodeMap bucketNodeMap, int splitBatchSize, OptionalInt concurrentLifespansPerTask, NodeSelector nodeSelector, List<ConnectorPartitionHandle> partitionHandles, DynamicFilterService dynamicFilterService)
-
-
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
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceStageScheduler
-
-