Package io.trino.execution.scheduler
Class StageTaskSourceFactory.ArbitraryDistributionTaskSource
- java.lang.Object
-
- io.trino.execution.scheduler.StageTaskSourceFactory.ArbitraryDistributionTaskSource
-
- All Implemented Interfaces:
TaskSource,Closeable,AutoCloseable
- Enclosing class:
- StageTaskSourceFactory
public static class StageTaskSourceFactory.ArbitraryDistributionTaskSource extends Object implements TaskSource
-
-
Constructor Summary
Constructors Constructor Description ArbitraryDistributionTaskSource(Map<PlanFragmentId,PlanNodeId> sourceFragmentToRemoteSourceNodeIdMap, Map<PlanFragmentId,Exchange> sourceExchanges, com.google.common.collect.Multimap<PlanFragmentId,ExchangeSourceHandle> exchangeSourceHandles, io.airlift.units.DataSize targetPartitionSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static StageTaskSourceFactory.ArbitraryDistributionTaskSourcecreate(PlanFragment fragment, Map<PlanFragmentId,Exchange> sourceExchanges, com.google.common.collect.Multimap<PlanFragmentId,ExchangeSourceHandle> exchangeSourceHandles, io.airlift.units.DataSize targetPartitionSize)List<TaskDescriptor>getMoreTasks()booleanisFinished()
-
-
-
Constructor Detail
-
ArbitraryDistributionTaskSource
public ArbitraryDistributionTaskSource(Map<PlanFragmentId,PlanNodeId> sourceFragmentToRemoteSourceNodeIdMap, Map<PlanFragmentId,Exchange> sourceExchanges, com.google.common.collect.Multimap<PlanFragmentId,ExchangeSourceHandle> exchangeSourceHandles, io.airlift.units.DataSize targetPartitionSize)
-
-
Method Detail
-
create
public static StageTaskSourceFactory.ArbitraryDistributionTaskSource create(PlanFragment fragment, Map<PlanFragmentId,Exchange> sourceExchanges, com.google.common.collect.Multimap<PlanFragmentId,ExchangeSourceHandle> exchangeSourceHandles, io.airlift.units.DataSize targetPartitionSize)
-
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
-
-