use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterMapProto in project hadoop by apache.
the class CounterGroupPBImpl method initCounters.
private void initCounters() {
if (this.counters != null) {
return;
}
CounterGroupProtoOrBuilder p = viaProto ? proto : builder;
List<StringCounterMapProto> list = p.getCountersList();
this.counters = new HashMap<String, Counter>();
for (StringCounterMapProto c : list) {
this.counters.put(c.getKey(), convertFromProtoFormat(c.getValue()));
}
}
Aggregations