|
||||||||||
| 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(java.lang.String name)
|
protected |
CounterGroup(java.lang.String name,
java.lang.String displayName)
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object genericRight)
|
Counter |
findCounter(java.lang.String counterName)
|
protected Counter |
findCounter(java.lang.String counterName,
java.lang.String displayName)
Internal to find a counter in a group. |
java.lang.String |
getDisplayName()
Get the display name of the group. |
java.lang.String |
getName()
Get the internal name of the group |
int |
hashCode()
|
void |
incrAllCounters(CounterGroup rightGroup)
|
java.util.Iterator<Counter> |
iterator()
|
void |
readFields(java.io.DataInput in)
Deserialize the fields of this object from in. |
int |
size()
Returns the number of counters in this group. |
void |
write(java.io.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(java.lang.String name)
protected CounterGroup(java.lang.String name,
java.lang.String displayName)
| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getDisplayName()
protected Counter findCounter(java.lang.String counterName,
java.lang.String displayName)
counterName - the name of the counterdisplayName - the display name of the counter
public Counter findCounter(java.lang.String counterName)
public java.util.Iterator<Counter> iterator()
iterator in interface java.lang.Iterable<Counter>
public void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.
write in interface Writableout - DataOuput to serialize this object into.
java.io.IOException
public void readFields(java.io.DataInput in)
throws java.io.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.
java.io.IOExceptionpublic int size()
public boolean equals(java.lang.Object genericRight)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void incrAllCounters(CounterGroup rightGroup)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||