| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.contrib.utils.join.JobBase
public abstract class JobBase
A common base implementing some statics collecting mechanisms that are commonly used in a typical map/reduce job.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log | 
LOG
 | 
| Constructor Summary | |
|---|---|
JobBase()
 | 
|
| Method Summary | |
|---|---|
protected  Double | 
addDoubleValue(Object name,
               double inc)
Increment the given counter by the given incremental value If the counter does not exist, one is created with value 0.  | 
protected  Long | 
addLongValue(Object name,
             long inc)
Increment the given counter by the given incremental value If the counter does not exist, one is created with value 0.  | 
 void | 
configure(JobConf job)
Initializes a new instance from a JobConf. | 
protected  Double | 
getDoubleValue(Object name)
 | 
protected  Long | 
getLongValue(Object name)
 | 
protected  String | 
getReport()
log the counters  | 
protected  void | 
report()
log the counters  | 
protected  void | 
setDoubleValue(Object name,
               double value)
Set the given counter to the given value  | 
protected  void | 
setLongValue(Object name,
             long value)
Set the given counter to the given value  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.apache.hadoop.mapred.Mapper | 
|---|
map | 
| Methods inherited from interface java.io.Closeable | 
|---|
close | 
| Methods inherited from interface org.apache.hadoop.mapred.Reducer | 
|---|
reduce | 
| Methods inherited from interface java.io.Closeable | 
|---|
close | 
| Field Detail | 
|---|
public static final org.apache.commons.logging.Log LOG
| Constructor Detail | 
|---|
public JobBase()
| Method Detail | 
|---|
protected void setLongValue(Object name,
                            long value)
name - the counter namevalue - the value for the counter
protected void setDoubleValue(Object name,
                              double value)
name - the counter namevalue - the value for the counterprotected Long getLongValue(Object name)
name - the counter name
protected Double getDoubleValue(Object name)
name - the counter name
protected Long addLongValue(Object name,
                            long inc)
name - the counter nameinc - the incremental value
protected Double addDoubleValue(Object name,
                                double inc)
name - the counter nameinc - the incremental value
protected void report()
protected String getReport()
public void configure(JobConf job)
JobConf.
configure in interface JobConfigurablejob - the configuration
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||