|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mrunit.counters.CounterWrapper
public class CounterWrapper
Wrapper around Counters from both mapred and mapreduce packages so that we can work with both counter classes in the same way.
Constructor Summary | |
---|---|
CounterWrapper(org.apache.hadoop.mapred.Counters counters)
Wrap old counter object |
|
CounterWrapper(org.apache.hadoop.mapreduce.Counters counters)
Wrap new counter object |
Method Summary | |
---|---|
long |
findCounterValue(Enum e)
Get counter value based on Enumeration |
long |
findCounterValue(String group,
String name)
Get counter value based on name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CounterWrapper(org.apache.hadoop.mapred.Counters counters)
counters
- public CounterWrapper(org.apache.hadoop.mapreduce.Counters counters)
counters
- Method Detail |
---|
public long findCounterValue(Enum e)
e
-
public long findCounterValue(String group, String name)
group
- name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |