List<Slot> slots = entry.getValue();
List<ResolvedSlot> resolved = new SlotResolver(getEnvironment()).resolve(slots);
if (getEnvironment().hasError()) {
return Collections.emptyList();
}
ParallelSortClientEmitter emitter = new ParallelSortClientEmitter(getEnvironment());
String moduleId = generateModuleName(saw, entry.getKey());
CompiledStage stage = emitter.emit(moduleId, resolved, entry.getKey());
// TODO not sure
results.add(new ExternalIoStage(getId(), stage, context.getOutputContext()));
}
return results;
}