|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapreduce.CounterGroup
public class CounterGroup
A group of Counter
s 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 |
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 |
---|
public 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
Writable
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.
IOException
public int size()
public boolean equals(Object genericRight)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void incrAllCounters(CounterGroup rightGroup)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |