public abstract static class HadoopUtility.MapReduceBase<K1,V1,K2,V2,K3,V3> extends Object implements org.apache.hadoop.mapred.Mapper<K1,V1,K2,V2>, org.apache.hadoop.mapred.Reducer<K2,V2,K3,V3>
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.mapred.JobConf |
jc |
Constructor and Description |
---|
HadoopUtility.MapReduceBase() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Called at end of map or reduce task.
|
protected abstract void |
closeMap() |
protected abstract void |
closeReduce() |
void |
configure(org.apache.hadoop.mapred.JobConf _jc) |
protected abstract void |
configureMap() |
protected abstract void |
configureReduce() |
public void configure(org.apache.hadoop.mapred.JobConf _jc)
configure
in interface org.apache.hadoop.mapred.JobConfigurable
protected abstract void configureMap() throws IOException
IOException
protected abstract void configureReduce() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
protected abstract void closeMap() throws IOException
IOException
protected abstract void closeReduce() throws IOException
IOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow