Issue Details (XML | Word | Printable)

Key: HADOOP-1230
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Owen O'Malley
Reporter: Owen O'Malley
Votes: 1
Watchers: 21
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Replace parameters with context objects in Mapper, Reducer, Partitioner, InputFormat, and OutputFormat classes

Created: 09/Apr/07 06:30 PM   Updated: 08/Jul/09 04:52 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.20.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works context-objs-2.patch 2008-03-01 06:08 PM Owen O'Malley 12 kB
Text File Licensed for inclusion in ASF works context-objs-3.patch 2008-06-26 12:48 PM Tom White 13 kB
Text File Licensed for inclusion in ASF works context-objs.patch 2008-02-29 07:24 AM Owen O'Malley 13 kB
Text File Licensed for inclusion in ASF works h1230.patch 2008-12-15 07:24 PM Owen O'Malley 285 kB
Text File Licensed for inclusion in ASF works h1230.patch 2008-12-15 05:30 PM Owen O'Malley 281 kB
Text File Licensed for inclusion in ASF works h1230.patch 2008-12-13 12:45 AM Owen O'Malley 278 kB
Text File Licensed for inclusion in ASF works h1230.patch 2008-12-12 05:24 PM Owen O'Malley 258 kB
Text File Licensed for inclusion in ASF works h1230.patch 2008-12-09 07:36 PM Owen O'Malley 208 kB
Issue Links:
Blocker
 
Dependants
 
Reference
 

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


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.