Search in sources :

Example 1 with StringCounterGroupMapProto

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()));
    }
}
Also used : StringCounterGroupMapProto(org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto) CounterGroup(org.apache.hadoop.mapreduce.v2.api.records.CounterGroup) CountersProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProtoOrBuilder)

Aggregations

CounterGroup (org.apache.hadoop.mapreduce.v2.api.records.CounterGroup)1 CountersProtoOrBuilder (org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProtoOrBuilder)1 StringCounterGroupMapProto (org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto)1