@Override
public List<ExternalIoStage> emitPrologue(IoContext context) throws IOException {
IoContextBuilder builder = new IoContextBuilder();
List<CopyDescription> targets = Lists.create();
for (Input input : context.getInputs()) {
InputDescription description = input.getDescription();
DirectFileInputDescription desc = extract(description);
if (isCacheTarget(desc)) {
LOG.debug("Input will be copied in prologue: {}", description.getName());
targets.add(new CopyDescription(
getProcessedInputName(description),
getEnvironment().getDataClasses().load(description.getDataType()),
getOriginalInputInfo(description),
TemporaryOutputFormat.class));
builder.addInput(input);
}
}