Package io.trino.execution.scheduler
Class FixedSourcePartitionedScheduler
- java.lang.Object
-
- io.trino.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 classFixedSourcePartitionedScheduler.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 voidclose()ScheduleResultschedule()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: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
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceStageScheduler
-
-