|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapreduce.CounterGroup
@InterfaceAudience.Public @InterfaceStability.Stable 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)
|
|
CounterGroup(String name,
String displayName)
Create a CounterGroup. |
Method Summary | |
---|---|
void |
addCounter(Counter counter)
Add a counter to this group. |
boolean |
equals(Object genericRight)
|
Counter |
findCounter(String counterName)
|
Counter |
findCounter(String counterName,
String displayName)
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)
|
int |
size()
Returns the number of counters in this group. |
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CounterGroup(String name)
public CounterGroup(String name, String displayName)
name
- the name of the group's enum.displayName
- a name to be displayed for the group.Method Detail |
---|
public String getName()
public String getDisplayName()
public void addCounter(Counter counter)
public 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
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
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 |