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