Search in sources :

Example 1 with GetTaskAttemptCompletionEventsResponseProtoOrBuilder

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

the class GetTaskAttemptCompletionEventsResponsePBImpl method initCompletionEvents.

private void initCompletionEvents() {
    if (this.completionEvents != null) {
        return;
    }
    GetTaskAttemptCompletionEventsResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<TaskAttemptCompletionEventProto> list = p.getCompletionEventsList();
    this.completionEvents = new ArrayList<TaskAttemptCompletionEvent>();
    for (TaskAttemptCompletionEventProto c : list) {
        this.completionEvents.add(convertFromProtoFormat(c));
    }
}
Also used : TaskAttemptCompletionEventProto(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptCompletionEventProto) TaskAttemptCompletionEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptCompletionEvent) GetTaskAttemptCompletionEventsResponseProtoOrBuilder(org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetTaskAttemptCompletionEventsResponseProtoOrBuilder)

Aggregations

TaskAttemptCompletionEvent (org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptCompletionEvent)1 TaskAttemptCompletionEventProto (org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptCompletionEventProto)1 GetTaskAttemptCompletionEventsResponseProtoOrBuilder (org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetTaskAttemptCompletionEventsResponseProtoOrBuilder)1