// ----------------- This code applies only to file inputs ------------------
final Path path = fileOutputFormat.getOutputFilePath();
final WriteMode writeMode = fileOutputFormat.getWriteMode();
final OutputDirectoryMode outDirMode = fileOutputFormat.getOutputDirectoryMode();
// Prepare output path and determine max DOP
try {
int dop = getTaskConfiguration().getInteger(DEGREE_OF_PARALLELISM_KEY, -1);