use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto in project hadoop by apache.
the class CountersPBImpl method initCounterGroups.
private void initCounterGroups() {
if (this.counterGroups != null) {
return;
}
CountersProtoOrBuilder p = viaProto ? proto : builder;
List<StringCounterGroupMapProto> list = p.getCounterGroupsList();
this.counterGroups = new HashMap<String, CounterGroup>();
for (StringCounterGroupMapProto c : list) {
this.counterGroups.put(c.getKey(), convertFromProtoFormat(c.getValue()));
}
}
Aggregations