Search in sources :

Example 1 with GetCountersResponseProtoOrBuilder

use of org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetCountersResponseProtoOrBuilder in project hadoop by apache.

the class GetCountersResponsePBImpl method getCounters.

@Override
public Counters getCounters() {
    GetCountersResponseProtoOrBuilder p = viaProto ? proto : builder;
    if (this.counters != null) {
        return this.counters;
    }
    if (!p.hasCounters()) {
        return null;
    }
    this.counters = convertFromProtoFormat(p.getCounters());
    return this.counters;
}
Also used : GetCountersResponseProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetCountersResponseProtoOrBuilder)

Aggregations

GetCountersResponseProtoOrBuilder (org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetCountersResponseProtoOrBuilder)1