@Override public Counters getCounters() { TaskAttemptReportProtoOrBuilder p = viaProto ? proto : builder; convertRawCountersToCounters(); if (this.counters != null) { return this.counters; } if (!p.hasCounters()) { return null; } this.counters = convertFromProtoFormat(p.getCounters()); return this.counters; }
@Override public Counters getCounters() { TaskAttemptReportProtoOrBuilder p = viaProto ? proto : builder; convertRawCountersToCounters(); if (this.counters != null) { return this.counters; } if (!p.hasCounters()) { return null; } this.counters = convertFromProtoFormat(p.getCounters()); return this.counters; }
private void mergeLocalToBuilder() { if (this.taskAttemptId != null) { builder.setTaskAttemptId(convertToProtoFormat(this.taskAttemptId)); } convertRawCountersToCounters(); if (this.counters != null) { builder.setCounters(convertToProtoFormat(this.counters)); } if (this.containerId != null) { builder.setContainerId(convertToProtoFormat(this.containerId)); } }
private void mergeLocalToBuilder() { if (this.taskAttemptId != null) { builder.setTaskAttemptId(convertToProtoFormat(this.taskAttemptId)); } convertRawCountersToCounters(); if (this.counters != null) { builder.setCounters(convertToProtoFormat(this.counters)); } if (this.containerId != null) { builder.setContainerId(convertToProtoFormat(this.containerId)); } }