|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.Counters
public class Counters
| Constructor Summary | |
|---|---|
Counters()
|
|
| Method Summary | |
|---|---|
int |
countCounters()
Returns the total number of counters, by summing the number of counters in each group. |
boolean |
equals(java.lang.Object genericRight)
|
Counter |
findCounter(java.lang.Enum<?> key)
Find the counter for the given enum. |
Counter |
findCounter(java.lang.String groupName,
java.lang.String counterName)
|
CounterGroup |
getGroup(java.lang.String groupName)
Returns the named counter group, or an empty group if there is none with the specified name. |
java.util.Collection<java.lang.String> |
getGroupNames()
Returns the names of all counter classes. |
int |
hashCode()
|
void |
incrAllCounters(Counters other)
Increments multiple counters by their amounts in another Counters instance. |
java.util.Iterator<CounterGroup> |
iterator()
|
void |
readFields(java.io.DataInput in)
Read a set of groups. |
java.lang.String |
toString()
Return textual representation of the counter values. |
void |
write(java.io.DataOutput out)
Write the set of groups. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Counters()
| Method Detail |
|---|
public Counter findCounter(java.lang.String groupName,
java.lang.String counterName)
public Counter findCounter(java.lang.Enum<?> key)
key - the counter key
public java.util.Collection<java.lang.String> getGroupNames()
public java.util.Iterator<CounterGroup> iterator()
iterator in interface java.lang.Iterable<CounterGroup>public CounterGroup getGroup(java.lang.String groupName)
public int countCounters()
public void write(java.io.DataOutput out)
throws java.io.IOException
write in interface Writableout - DataOuput to serialize this object into.
java.io.IOException
public void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface Writablein - DataInput to deseriablize this object from.
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void incrAllCounters(Counters other)
other - the other Counters instancepublic boolean equals(java.lang.Object genericRight)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||