org.apache.tez.common.counters
Class TezCounters

java.lang.Object
  extended by org.apache.tez.common.counters.AbstractCounters<TezCounter,CounterGroup>
      extended by org.apache.tez.common.counters.TezCounters
All Implemented Interfaces:
Iterable<CounterGroup>, org.apache.hadoop.io.Writable

@InterfaceAudience.Public
@InterfaceStability.Stable
public class TezCounters
extends AbstractCounters<TezCounter,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.


Field Summary
 
Fields inherited from class org.apache.tez.common.counters.AbstractCounters
LOG
 
Constructor Summary
TezCounters()
          Default constructor
TezCounters(AbstractCounters<C,G> counters)
          Construct the Counters object from the another counters object
 
Method Summary
 
Methods inherited from class org.apache.tez.common.counters.AbstractCounters
addGroup, addGroup, countCounters, equals, findCounter, findCounter, findCounter, getGroup, getGroupNames, getWriteAllCounters, hashCode, incrAllCounters, iterator, limits, readFields, setWriteAllCounters, toShortString, toString, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TezCounters

public TezCounters()
Default constructor


TezCounters

public TezCounters(AbstractCounters<C,G> counters)
Construct the Counters object from the another counters object

Type Parameters:
C - the type of counter
G - the type of counter group
Parameters:
counters - the old counters object


Copyright © 2014 Apache Software Foundation. All rights reserved.