public abstract class JobBase extends java.lang.Object implements Mapper, Reducer
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
JobBase() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Double |
addDoubleValue(java.lang.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 java.lang.Long |
addLongValue(java.lang.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 java.lang.Double |
getDoubleValue(java.lang.Object name) |
protected java.lang.Long |
getLongValue(java.lang.Object name) |
protected java.lang.String |
getReport()
log the counters
|
protected void |
report()
log the counters
|
protected void |
setDoubleValue(java.lang.Object name,
double value)
Set the given counter to the given value
|
protected void |
setLongValue(java.lang.Object name,
long value)
Set the given counter to the given value
|
protected void setLongValue(java.lang.Object name, long value)
name
- the counter namevalue
- the value for the counterprotected void setDoubleValue(java.lang.Object name, double value)
name
- the counter namevalue
- the value for the counterprotected java.lang.Long getLongValue(java.lang.Object name)
name
- the counter nameprotected java.lang.Double getDoubleValue(java.lang.Object name)
name
- the counter nameprotected java.lang.Long addLongValue(java.lang.Object name, long inc)
name
- the counter nameinc
- the incremental valueprotected java.lang.Double addDoubleValue(java.lang.Object name, double inc)
name
- the counter nameinc
- the incremental valueprotected void report()
protected java.lang.String getReport()
public void configure(JobConf job)
JobConf
.configure
in interface JobConfigurable
job
- the configurationCopyright © 2009 The Apache Software Foundation