Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
The OutputFormat API should be changed to be more evolution proof:
public interface OutputFormatContext {
JobConf getJobConf();
Progressable getProgress();
}
public interface OutputFormat {
RecordWriter getRecordWriter(int reduce, OutputFormatContext context) throws IOException;
void checkOutputSpecs(OutputFormatContext context) throws IOException;
}
And OutputFormatBase would be renamed:
public abstract class FileOutputFormat implements OutputFormat {
protected Path getOutputPath(int reduce, OutputFormatContext context) throws IOException
... current OutputFormatBase methods ...
}