public interface Reporter
| 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.
|
void setStatus(String status)
status - brief description of the current status.Counter getCounter(Enum<?> name)
Counter of the given group with the given name.name - counter nameCounter of the given group/name.Counter getCounter(String group, String name)
Counter of the given group with the given name.group - counter groupname - counter nameCounter of the given group/name.void incrCounter(Enum<?> key, long amount)
Enum type, by the specified amount.key - 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.void incrCounter(String group, String counter, long amount)
group - 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.InputSplit getInputSplit() throws UnsupportedOperationException
InputSplit object for a map.InputSplit that the map is reading from.UnsupportedOperationException - if called outside a mapperfloat getProgress()
void progress()
Copyright © 2023 Alibaba Cloud Computing. All rights reserved.