Search in sources :

Example 1 with TaskReportProto

use of org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProto in project hadoop by apache.

the class GetTaskReportsResponsePBImpl method initTaskReports.

private void initTaskReports() {
    if (this.taskReports != null) {
        return;
    }
    GetTaskReportsResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<TaskReportProto> list = p.getTaskReportsList();
    this.taskReports = new ArrayList<TaskReport>();
    for (TaskReportProto c : list) {
        this.taskReports.add(convertFromProtoFormat(c));
    }
}
Also used : TaskReport(org.apache.hadoop.mapreduce.v2.api.records.TaskReport) TaskReportProto(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProto) GetTaskReportsResponseProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetTaskReportsResponseProtoOrBuilder)

Aggregations

TaskReport (org.apache.hadoop.mapreduce.v2.api.records.TaskReport)1 TaskReportProto (org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProto)1 GetTaskReportsResponseProtoOrBuilder (org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetTaskReportsResponseProtoOrBuilder)1