| Constructor and Description |
|---|
ExecutionContextReporter(ExecutionContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
Counter |
getCounter(Enum<?> name)
Get the
Counter of the given group with the given name. |
Counter |
getCounter(String group,
String name)
Get the
Counter of the given group with the given name. |
InputSplit |
getInputSplit()
Get the
InputSplit object for a map. |
float |
getProgress()
Get the progress of the task.
|
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 framework.
|
void |
setStatus(String status)
Set the status description for the task.
|
public ExecutionContextReporter(ExecutionContext ctx)
public void setStatus(String status)
Reporterpublic Counter getCounter(Enum<?> name)
ReporterCounter of the given group with the given name.getCounter in interface Reportername - counter nameCounter of the given group/name.public Counter getCounter(String group, String name)
ReporterCounter of the given group with the given name.getCounter in interface Reportergroup - counter groupname - counter nameCounter 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)
ReporterincrCounter 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 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 float getProgress()
ReportergetProgress in interface ReporterCopyright © 2021 Alibaba Cloud Computing. All rights reserved.