|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.Counters.Group
public static class Counters.Group
Group of counters, comprising of counters from a particular
counter Enum class.
Grouphandles localization of the class name and the
counter names.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Checks for (content) equality of Groups |
Counters.Counter |
getCounter(int id,
java.lang.String name)
Deprecated. use getCounter(String) instead |
long |
getCounter(java.lang.String counterName)
Returns the value of the specified counter, or 0 if the counter does not exist. |
Counters.Counter |
getCounterForName(java.lang.String name)
Get the counter for the given name and create it if it doesn't exist. |
java.lang.String |
getDisplayName()
Returns localized name of the group. |
java.lang.String |
getName()
Returns raw name of the group. |
int |
hashCode()
|
java.util.Iterator<Counters.Counter> |
iterator()
|
java.lang.String |
makeEscapedCompactString()
Returns the compact stringified version of the group in the format {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the counters within. |
void |
readFields(java.io.DataInput in)
Deserialize the fields of this object from in. |
void |
setDisplayName(java.lang.String displayName)
Set the display name |
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 |
| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
public java.lang.String makeEscapedCompactString()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic long getCounter(java.lang.String counterName)
@Deprecated
public Counters.Counter getCounter(int id,
java.lang.String name)
getCounter(String) instead
id - the numeric id of the counter within the groupname - the internal counter name
public Counters.Counter getCounterForName(java.lang.String name)
name - the internal counter name
public int size()
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 java.util.Iterator<Counters.Counter> iterator()
iterator in interface java.lang.Iterable<Counters.Counter>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||