|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.Counters.Group
public static class Counters.Group
Represents a group of counters, comprising the counters from a particular counter enum class. This class handles localization of the class name and the counter names.
Method Summary | |
---|---|
long |
getCounter(String counter)
Returns the value of the specified counter, or 0 if the counter does not exist. |
Collection<String> |
getCounterNames()
Returns the counters for this group, with their names localized. |
String |
getDisplayName()
Returns localized name of the group. |
String |
getDisplayName(String counter)
Returns localized name of the specified counter. |
String |
getName()
Returns raw name of the group. |
int |
size()
Returns the number of counters in this group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getName()
public String getDisplayName()
public String getDisplayName(String counter)
public Collection<String> getCounterNames()
public long getCounter(String counter)
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |