Package io.trino.execution.scheduler
Class StageTaskSourceFactory.SourceDistributionTaskSource
- java.lang.Object
-
- io.trino.execution.scheduler.StageTaskSourceFactory.SourceDistributionTaskSource
-
- All Implemented Interfaces:
TaskSource,Closeable,AutoCloseable
- Enclosing class:
- StageTaskSourceFactory
public static class StageTaskSourceFactory.SourceDistributionTaskSource extends Object implements TaskSource
-
-
Constructor Summary
Constructors Constructor Description SourceDistributionTaskSource(QueryId queryId, PlanNodeId partitionedSourceNodeId, TableExecuteContextManager tableExecuteContextManager, SplitSource splitSource, com.google.common.collect.Multimap<PlanNodeId,ExchangeSourceHandle> replicatedExchangeSourceHandles, int splitBatchSize, LongConsumer getSplitTimeRecorder, Optional<CatalogName> catalogRequirement, int targetPartitionSplitCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static StageTaskSourceFactory.SourceDistributionTaskSourcecreate(Session session, PlanFragment fragment, SplitSourceFactory splitSourceFactory, com.google.common.collect.Multimap<PlanFragmentId,ExchangeSourceHandle> exchangeSourceHandles, TableExecuteContextManager tableExecuteContextManager, int splitBatchSize, LongConsumer getSplitTimeRecorder, int targetPartitionSplitCount)List<TaskDescriptor>getMoreTasks()booleanisFinished()
-
-
-
Constructor Detail
-
SourceDistributionTaskSource
public SourceDistributionTaskSource(QueryId queryId, PlanNodeId partitionedSourceNodeId, TableExecuteContextManager tableExecuteContextManager, SplitSource splitSource, com.google.common.collect.Multimap<PlanNodeId,ExchangeSourceHandle> replicatedExchangeSourceHandles, int splitBatchSize, LongConsumer getSplitTimeRecorder, Optional<CatalogName> catalogRequirement, int targetPartitionSplitCount)
-
-
Method Detail
-
create
public static StageTaskSourceFactory.SourceDistributionTaskSource create(Session session, PlanFragment fragment, SplitSourceFactory splitSourceFactory, com.google.common.collect.Multimap<PlanFragmentId,ExchangeSourceHandle> exchangeSourceHandles, TableExecuteContextManager tableExecuteContextManager, int splitBatchSize, LongConsumer getSplitTimeRecorder, int targetPartitionSplitCount)
-
getMoreTasks
public List<TaskDescriptor> getMoreTasks()
- Specified by:
getMoreTasksin interfaceTaskSource
-
isFinished
public boolean isFinished()
- Specified by:
isFinishedin interfaceTaskSource
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceTaskSource
-
-