|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.CounterGroup
public class CounterGroup
A group of Counters that logically belong together. Typically,
it is an Enum subclass and the counters are the values.
| Constructor Summary | |
|---|---|
protected |
CounterGroup(String name)
|
protected |
CounterGroup(String name,
String displayName)
|
| Method Summary | |
|---|---|
boolean |
equals(Object genericRight)
|
Counter |
findCounter(String counterName)
|
protected Counter |
findCounter(String counterName,
String displayName)
Internal to find a counter in a group. |
String |
getDisplayName()
Get the display name of the group. |
String |
getName()
Get the internal name of the group |
static ResourceBundle |
getResourceBundle(String enumClassName)
Returns the specified resource bundle, or throws an exception. |
int |
hashCode()
|
void |
incrAllCounters(CounterGroup rightGroup)
|
Iterator<Counter> |
iterator()
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in. |
int |
size()
Returns the number of counters in this group. |
void |
write(DataOutput out)
Serialize the fields of this object to out. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CounterGroup(String name)
protected CounterGroup(String name,
String displayName)
| Method Detail |
|---|
@InterfaceAudience.Private
public static ResourceBundle getResourceBundle(String enumClassName)
throws MissingResourceException
MissingResourceException - if the bundle isn't foundpublic String getName()
public String getDisplayName()
protected Counter findCounter(String counterName,
String displayName)
counterName - the name of the counterdisplayName - the display name of the counter
public Counter findCounter(String counterName)
public Iterator<Counter> iterator()
iterator in interface Iterable<Counter>
public void write(DataOutput out)
throws IOException
Writableout.
write in interface Writableout - DataOuput to serialize this object into.
IOException
public void readFields(DataInput in)
throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.
IOExceptionpublic int size()
public boolean equals(Object genericRight)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void incrAllCounters(CounterGroup rightGroup)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||