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
@InterfaceAudience.Public
@InterfaceStability.Stable
public class Counters
- extends AbstractCounters<Counter,CounterGroup>
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.
| Methods inherited from class org.apache.hadoop.mapreduce.counters.AbstractCounters |
countCounters, equals, findCounter, findCounter, getGroup, getGroupNames, hashCode, incrAllCounters, iterator, readFields, toString, write |
Counters
public Counters()
- Default constructor
Counters
public Counters(AbstractCounters<C,G> 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
Copyright © 2014 Apache Software Foundation. All Rights Reserved.