Package io.trino.execution.scheduler
Class SourcePartitionedScheduler
java.lang.Object
io.trino.execution.scheduler.SourcePartitionedScheduler
- All Implemented Interfaces:
SourceScheduler
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static SourceSchedulernewSourcePartitionedSchedulerAsSourceScheduler(StageExecution stageExecution, PlanNodeId partitionedNode, SplitSource splitSource, SplitPlacementPolicy splitPlacementPolicy, int splitBatchSize, DynamicFilterService dynamicFilterService, TableExecuteContextManager tableExecuteContextManager, BooleanSupplier anySourceTaskBlocked, PartitionIdAllocator partitionIdAllocator, Map<InternalNode, RemoteTask> scheduledTasks) Obtains aSourceSchedulersuitable for use in FixedSourcePartitionedScheduler.static StageSchedulernewSourcePartitionedSchedulerAsStageScheduler(StageExecution stageExecution, PlanNodeId partitionedNode, SplitSource splitSource, SplitPlacementPolicy splitPlacementPolicy, int splitBatchSize, DynamicFilterService dynamicFilterService, TableExecuteContextManager tableExecuteContextManager, BooleanSupplier anySourceTaskBlocked) Obtains an instance ofSourcePartitionedSchedulersuitable for use as a stage scheduler.schedule()voidstart()
-
Method Details
-
getPlanNodeId
- Specified by:
getPlanNodeIdin interfaceSourceScheduler
-
newSourcePartitionedSchedulerAsStageScheduler
public static StageScheduler newSourcePartitionedSchedulerAsStageScheduler(StageExecution stageExecution, PlanNodeId partitionedNode, SplitSource splitSource, SplitPlacementPolicy splitPlacementPolicy, int splitBatchSize, DynamicFilterService dynamicFilterService, TableExecuteContextManager tableExecuteContextManager, BooleanSupplier anySourceTaskBlocked) Obtains an instance ofSourcePartitionedSchedulersuitable for use as a stage scheduler.This returns an ungrouped
SourcePartitionedSchedulerthat requires minimal management from the caller, which is ideal for use as a stage scheduler. -
newSourcePartitionedSchedulerAsSourceScheduler
public static SourceScheduler newSourcePartitionedSchedulerAsSourceScheduler(StageExecution stageExecution, PlanNodeId partitionedNode, SplitSource splitSource, SplitPlacementPolicy splitPlacementPolicy, int splitBatchSize, DynamicFilterService dynamicFilterService, TableExecuteContextManager tableExecuteContextManager, BooleanSupplier anySourceTaskBlocked, PartitionIdAllocator partitionIdAllocator, Map<InternalNode, RemoteTask> scheduledTasks) Obtains aSourceSchedulersuitable for use in FixedSourcePartitionedScheduler.This returns a
SourceSchedulerthat can be used for a pipeline that is either ungrouped or grouped. However, the caller is responsible initializing the driver groups in this scheduler accordingly. -
start
public void start()- Specified by:
startin interfaceSourceScheduler
-
schedule
- Specified by:
schedulein interfaceSourceScheduler
-
close
public void close()- Specified by:
closein interfaceSourceScheduler
-