
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
|
|
Issue Links:
|
Blocker
|
|
This issue blocks:
|
|
|
MAPREDUCE-252 Create an InputFormat for reading lines of text as Java Strings
|
|
|
|
|
|
Dependants
|
|
|
|
Reference
|
|
|
|
This issue is related to:
|
|
|
|
|
|
MAPREDUCE-245
Job and JobControl classes should return interfaces rather than implementations
|
|
|
|
|
|
|
| Hadoop Flags: |
Reviewed
|
| Release Note: |
Replaced parameters with context obejcts in Mapper, Reducer, Partitioner, InputFormat, and OutputFormat classes.
|
| Resolution Date: |
15/Dec/08 10:22 PM
|
This is a big change, but it will future-proof our API's. To maintain backwards compatibility, I'd suggest that we move over to a new package name (org.apache.hadoop.mapreduce) and deprecate the old interfaces and package. Basically, it will replace:
package org.apache.hadoop.mapred;
public interface Mapper extends JobConfigurable, Closeable {
void map(WritableComparable key, Writable value, OutputCollector output, Reporter reporter) throws IOException;
}
with:
package org.apache.hadoop.mapreduce;
public interface Mapper extends Closable {
void map(MapContext context) throws IOException;
}
where MapContext has the methods like getKey(), getValue(), collect(Key, Value), progress(), etc.
|
|
Description
|
This is a big change, but it will future-proof our API's. To maintain backwards compatibility, I'd suggest that we move over to a new package name (org.apache.hadoop.mapreduce) and deprecate the old interfaces and package. Basically, it will replace:
package org.apache.hadoop.mapred;
public interface Mapper extends JobConfigurable, Closeable {
void map(WritableComparable key, Writable value, OutputCollector output, Reporter reporter) throws IOException;
}
with:
package org.apache.hadoop.mapreduce;
public interface Mapper extends Closable {
void map(MapContext context) throws IOException;
}
where MapContext has the methods like getKey(), getValue(), collect(Key, Value), progress(), etc. |
Show » |
| No work has yet been logged on this issue.
|
|