use of io.trino.execution.RemoteTask in project trino by trinodb.
the class PipelinedStageExecution method noMoreSourceTasks.
private synchronized void noMoreSourceTasks(PlanFragmentId fragmentId) {
RemoteSourceNode remoteSource = exchangeSources.get(fragmentId);
checkArgument(remoteSource != null, "Unknown remote source %s. Known sources are %s", fragmentId, exchangeSources.keySet());
completeSourceFragments.add(fragmentId);
// is the source now complete?
if (completeSourceFragments.containsAll(remoteSource.getSourceFragmentIds())) {
completeSources.add(remoteSource.getId());
for (RemoteTask task : getAllTasks()) {
task.noMoreSplits(remoteSource.getId());
}
}
}
Aggregations