Counters holds per job/task counters, defined either by the framework or applications. Each Counter can be of any {@link Enum} type.
Counters
Counter
Counters are bunched into {@link CounterGroup}s, each comprising of counters from a particular Enum class.
Enum
2829303132333435363738
public class AvroUtils { public static TezCounters toAvro( org.apache.tez.common.counters.TezCounters counters) { TezCounters result = new TezCounters(); result.groups = new ArrayList<TezCounterGroup>(0); if (counters == null) return result; for (CounterGroup group : counters) { TezCounterGroup g = new TezCounterGroup(); g.name = new Utf8(group.getName());