org.apache.hadoop.mapred
Class MapReduceBase
java.lang.Object
org.apache.hadoop.mapred.MapReduceBase
- All Implemented Interfaces:
- Closeable, JobConfigurable
- Direct Known Subclasses:
- IdentityMapper, IdentityReducer, InverseMapper, LongSumReducer, RegexMapper, TokenCountMapper, WordCount.MapClass, WordCount.Reduce
public class MapReduceBase
- extends Object
- implements Closeable, JobConfigurable
A class to implement the trivial close and configure methods.
- Author:
- Owen O'Malley
Method Summary |
void |
close()
Called after the last call to any other method on this object to free
and/or flush resources. |
void |
configure(JobConf job)
Initializes a new instance from a JobConf . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapReduceBase
public MapReduceBase()
close
public void close()
- Description copied from interface:
Closeable
- Called after the last call to any other method on this object to free
and/or flush resources. Typical implementations do nothing.
- Specified by:
close
in interface Closeable
configure
public void configure(JobConf job)
- Description copied from interface:
JobConfigurable
- Initializes a new instance from a
JobConf
.
- Specified by:
configure
in interface JobConfigurable
- Parameters:
job
- the configuration
Copyright © 2006 The Apache Software Foundation