Package org.apache.hadoop.mapreduce
Class Counters
java.lang.Object
org.apache.hadoop.mapreduce.counters.AbstractCounters<Counter,CounterGroup>
org.apache.hadoop.mapreduce.Counters
- All Implemented Interfaces:
Iterable<CounterGroup>,Writable
Counters holds per job/task counters, defined either by the
Map-Reduce framework or applications. Each Counter can be of
any Enum type.
Counters are bunched into CounterGroups, each
comprising of counters from a particular Enum class.
-
Field Summary
Fields inherited from class org.apache.hadoop.mapreduce.counters.AbstractCounters
LOG -
Constructor Summary
ConstructorsConstructorDescriptionCounters()Default constructorCounters(AbstractCounters<C, G> counters) Construct the Counters object from the another counters object -
Method Summary
Methods inherited from class org.apache.hadoop.mapreduce.counters.AbstractCounters
addGroup, addGroup, countCounters, equals, findCounter, findCounter, findCounter, getGroup, getGroupNames, getWriteAllCounters, hashCode, incrAllCounters, iterator, limits, readFields, setWriteAllCounters, toString, writeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Counters
public Counters()Default constructor -
Counters
Construct the Counters object from the another counters object- Type Parameters:
C- the type of counterG- the type of counter group- Parameters:
counters- the old counters object
-