|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.StatusReporter
org.apache.hadoop.mapred.Task.TaskReporter
protected class Task.TaskReporter
| Field Summary |
|---|
| Fields inherited from interface org.apache.hadoop.mapred.Reporter |
|---|
NULL |
| Method Summary | |
|---|---|
Counters.Counter |
getCounter(Enum<?> name)
Get the Counters.Counter of the given group with the given name. |
Counters.Counter |
getCounter(String group,
String name)
Get the Counters.Counter of the given group with the given name. |
InputSplit |
getInputSplit()
Get the InputSplit object for a map. |
float |
getProgress()
Get the current progress. |
void |
incrCounter(Enum key,
long amount)
Increments the counter identified by the key, which can be of any Enum type, by the specified amount. |
void |
incrCounter(String group,
String counter,
long amount)
Increments the counter identified by the group and counter name by the specified amount. |
void |
progress()
Report progress to the Hadoop framework. |
void |
run()
The communication thread handles communication with the parent (Task Tracker). |
void |
setInputSplit(InputSplit split)
|
void |
setProgress(float progress)
|
void |
setStatus(String status)
Set the status description for the task. |
void |
startCommunicationThread()
|
void |
stopCommunicationThread()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setStatus(String status)
Reporter
setStatus in interface ReportersetStatus in class StatusReporterstatus - brief description of the current status.public void setProgress(float progress)
public float getProgress()
StatusReporter
getProgress in interface ReportergetProgress in class StatusReporterpublic void progress()
Progressable
progress in interface Progressableprogress in class StatusReporter
public Counters.Counter getCounter(String group,
String name)
ReporterCounters.Counter of the given group with the given name.
getCounter in interface ReportergetCounter in class StatusReportergroup - counter groupname - counter name
Counter of the given group/name.public Counters.Counter getCounter(Enum<?> name)
ReporterCounters.Counter of the given group with the given name.
getCounter in interface ReportergetCounter in class StatusReportername - counter name
Counter of the given group/name.
public void incrCounter(Enum key,
long amount)
ReporterEnum type, by the specified amount.
incrCounter in interface Reporterkey - key to identify the counter to be incremented. The key can be
be any Enum.amount - A non-negative amount by which the counter is to
be incremented.
public void incrCounter(String group,
String counter,
long amount)
Reporter
incrCounter in interface Reportergroup - name to identify the group of the counter to be incremented.counter - name to identify the counter within the group.amount - A non-negative amount by which the counter is to
be incremented.public void setInputSplit(InputSplit split)
public InputSplit getInputSplit()
throws UnsupportedOperationException
ReporterInputSplit object for a map.
getInputSplit in interface ReporterInputSplit that the map is reading from.
UnsupportedOperationException - if called outside a mapperpublic void run()
run in interface Runnablepublic void startCommunicationThread()
public void stopCommunicationThread()
throws InterruptedException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||