Package io.trino.execution.scheduler
Class StageTaskSourceFactory.HashDistributionTaskSource
- java.lang.Object
-
- io.trino.execution.scheduler.StageTaskSourceFactory.HashDistributionTaskSource
-
- All Implemented Interfaces:
TaskSource,Closeable,AutoCloseable
- Enclosing class:
- StageTaskSourceFactory
public static class StageTaskSourceFactory.HashDistributionTaskSource extends Object implements TaskSource
-
-
Constructor Summary
Constructors Constructor Description HashDistributionTaskSource(Map<PlanNodeId,SplitSource> splitSources, com.google.common.collect.Multimap<PlanNodeId,ExchangeSourceHandle> partitionedExchangeSourceHandles, com.google.common.collect.Multimap<PlanNodeId,ExchangeSourceHandle> replicatedExchangeSourceHandles, int splitBatchSize, LongConsumer getSplitTimeRecorder, int[] bucketToPartitionMap, Optional<BucketNodeMap> bucketNodeMap, Optional<CatalogName> catalogRequirement)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static StageTaskSourceFactory.HashDistributionTaskSourcecreate(Session session, PlanFragment fragment, SplitSourceFactory splitSourceFactory, com.google.common.collect.Multimap<PlanFragmentId,ExchangeSourceHandle> exchangeSourceHandles, int splitBatchSize, LongConsumer getSplitTimeRecorder, int[] bucketToPartitionMap, Optional<BucketNodeMap> bucketNodeMap)List<TaskDescriptor>getMoreTasks()booleanisFinished()
-
-
-
Constructor Detail
-
HashDistributionTaskSource
public HashDistributionTaskSource(Map<PlanNodeId,SplitSource> splitSources, com.google.common.collect.Multimap<PlanNodeId,ExchangeSourceHandle> partitionedExchangeSourceHandles, com.google.common.collect.Multimap<PlanNodeId,ExchangeSourceHandle> replicatedExchangeSourceHandles, int splitBatchSize, LongConsumer getSplitTimeRecorder, int[] bucketToPartitionMap, Optional<BucketNodeMap> bucketNodeMap, Optional<CatalogName> catalogRequirement)
-
-
Method Detail
-
create
public static StageTaskSourceFactory.HashDistributionTaskSource create(Session session, PlanFragment fragment, SplitSourceFactory splitSourceFactory, com.google.common.collect.Multimap<PlanFragmentId,ExchangeSourceHandle> exchangeSourceHandles, int splitBatchSize, LongConsumer getSplitTimeRecorder, int[] bucketToPartitionMap, Optional<BucketNodeMap> bucketNodeMap)
-
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
-
-