java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.io.Closeable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Mapper, org.apache.hadoop.mapred.ReducerDataJoinMapperBase, DataJoinReducerBasepublic abstract class JobBase
extends java.lang.Object
implements org.apache.hadoop.mapred.Mapper, org.apache.hadoop.mapred.Reducer
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
JobBase() |
| Modifier and Type | Method | 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(org.apache.hadoop.mapred.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(org.apache.hadoop.mapred.JobConf job)
JobConf.configure in interface org.apache.hadoop.mapred.JobConfigurablejob - the configurationCopyright © 2008–2025 Apache Software Foundation. All rights reserved.