Class Counters

All Implemented Interfaces:
Iterable<CounterGroup>, Writable

@Public @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.

  • Constructor Details

    • 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 counter
      G - the type of counter group
      Parameters:
      counters - the old counters object