/** Creates a Builder by copying an existing TaskFinished instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskFinished other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskFinished.SCHEMA$); if (isValidValue(fields()[0], other.taskid)) { this.taskid = data().deepCopy(fields()[0].schema(), other.taskid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.taskType)) { this.taskType = data().deepCopy(fields()[1].schema(), other.taskType); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.finishTime)) { this.finishTime = data().deepCopy(fields()[2].schema(), other.finishTime); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.status)) { this.status = data().deepCopy(fields()[3].schema(), other.status); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.counters)) { this.counters = data().deepCopy(fields()[4].schema(), other.counters); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.successfulAttemptId)) { this.successfulAttemptId = data().deepCopy(fields()[5].schema(), other.successfulAttemptId); fieldSetFlags()[5] = true; } }
@Override public TaskFinished build() { try { TaskFinished record = new TaskFinished(); record.taskid = fieldSetFlags()[0] ? this.taskid : (java.lang.CharSequence) defaultValue(fields()[0]); record.taskType = fieldSetFlags()[1] ? this.taskType : (java.lang.CharSequence) defaultValue(fields()[1]); record.finishTime = fieldSetFlags()[2] ? this.finishTime : (java.lang.Long) defaultValue(fields()[2]); record.status = fieldSetFlags()[3] ? this.status : (java.lang.CharSequence) defaultValue(fields()[3]); record.counters = fieldSetFlags()[4] ? this.counters : (org.apache.hadoop.mapreduce.jobhistory.JhCounters) defaultValue(fields()[4]); record.successfulAttemptId = fieldSetFlags()[5] ? this.successfulAttemptId : (java.lang.CharSequence) defaultValue(fields()[5]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Creates a Builder by copying an existing TaskFinished instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskFinished other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskFinished.SCHEMA$); if (isValidValue(fields()[0], other.taskid)) { this.taskid = data().deepCopy(fields()[0].schema(), other.taskid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.taskType)) { this.taskType = data().deepCopy(fields()[1].schema(), other.taskType); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.finishTime)) { this.finishTime = data().deepCopy(fields()[2].schema(), other.finishTime); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.status)) { this.status = data().deepCopy(fields()[3].schema(), other.status); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.counters)) { this.counters = data().deepCopy(fields()[4].schema(), other.counters); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.successfulAttemptId)) { this.successfulAttemptId = data().deepCopy(fields()[5].schema(), other.successfulAttemptId); fieldSetFlags()[5] = true; } }
/** Creates a Builder by copying an existing TaskFinished instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskFinished other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskFinished.SCHEMA$); if (isValidValue(fields()[0], other.taskid)) { this.taskid = data().deepCopy(fields()[0].schema(), other.taskid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.taskType)) { this.taskType = data().deepCopy(fields()[1].schema(), other.taskType); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.finishTime)) { this.finishTime = data().deepCopy(fields()[2].schema(), other.finishTime); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.status)) { this.status = data().deepCopy(fields()[3].schema(), other.status); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.counters)) { this.counters = data().deepCopy(fields()[4].schema(), other.counters); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.successfulAttemptId)) { this.successfulAttemptId = data().deepCopy(fields()[5].schema(), other.successfulAttemptId); fieldSetFlags()[5] = true; } }
/** Creates a Builder by copying an existing TaskFinished instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskFinished other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskFinished.SCHEMA$); if (isValidValue(fields()[0], other.taskid)) { this.taskid = data().deepCopy(fields()[0].schema(), other.taskid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.taskType)) { this.taskType = data().deepCopy(fields()[1].schema(), other.taskType); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.finishTime)) { this.finishTime = data().deepCopy(fields()[2].schema(), other.finishTime); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.status)) { this.status = data().deepCopy(fields()[3].schema(), other.status); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.counters)) { this.counters = data().deepCopy(fields()[4].schema(), other.counters); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.successfulAttemptId)) { this.successfulAttemptId = data().deepCopy(fields()[5].schema(), other.successfulAttemptId); fieldSetFlags()[5] = true; } }
@Override public TaskFinished build() { try { TaskFinished record = new TaskFinished(); record.taskid = fieldSetFlags()[0] ? this.taskid : (java.lang.CharSequence) defaultValue(fields()[0]); record.taskType = fieldSetFlags()[1] ? this.taskType : (java.lang.CharSequence) defaultValue(fields()[1]); record.finishTime = fieldSetFlags()[2] ? this.finishTime : (java.lang.Long) defaultValue(fields()[2]); record.status = fieldSetFlags()[3] ? this.status : (java.lang.CharSequence) defaultValue(fields()[3]); record.counters = fieldSetFlags()[4] ? this.counters : (org.apache.hadoop.mapreduce.jobhistory.JhCounters) defaultValue(fields()[4]); record.successfulAttemptId = fieldSetFlags()[5] ? this.successfulAttemptId : (java.lang.CharSequence) defaultValue(fields()[5]); return record; } catch (Exception e) { throw new io.prestosql.hadoop.$internal.org.apache.avro.AvroRuntimeException(e); } } }
@Override public TaskFinished build() { try { TaskFinished record = new TaskFinished(); record.taskid = fieldSetFlags()[0] ? this.taskid : (java.lang.CharSequence) defaultValue(fields()[0]); record.taskType = fieldSetFlags()[1] ? this.taskType : (java.lang.CharSequence) defaultValue(fields()[1]); record.finishTime = fieldSetFlags()[2] ? this.finishTime : (java.lang.Long) defaultValue(fields()[2]); record.status = fieldSetFlags()[3] ? this.status : (java.lang.CharSequence) defaultValue(fields()[3]); record.counters = fieldSetFlags()[4] ? this.counters : (org.apache.hadoop.mapreduce.jobhistory.JhCounters) defaultValue(fields()[4]); record.successfulAttemptId = fieldSetFlags()[5] ? this.successfulAttemptId : (java.lang.CharSequence) defaultValue(fields()[5]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
@Override public TaskFinished build() { try { TaskFinished record = new TaskFinished(); record.taskid = fieldSetFlags()[0] ? this.taskid : (java.lang.CharSequence) defaultValue(fields()[0]); record.taskType = fieldSetFlags()[1] ? this.taskType : (java.lang.CharSequence) defaultValue(fields()[1]); record.finishTime = fieldSetFlags()[2] ? this.finishTime : (java.lang.Long) defaultValue(fields()[2]); record.status = fieldSetFlags()[3] ? this.status : (java.lang.CharSequence) defaultValue(fields()[3]); record.counters = fieldSetFlags()[4] ? this.counters : (org.apache.hadoop.mapreduce.jobhistory.JhCounters) defaultValue(fields()[4]); record.successfulAttemptId = fieldSetFlags()[5] ? this.successfulAttemptId : (java.lang.CharSequence) defaultValue(fields()[5]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Checks whether the 'status' field has been set */ public boolean hasStatus() { return fieldSetFlags()[3]; }
/** Checks whether the 'taskid' field has been set */ public boolean hasTaskid() { return fieldSetFlags()[0]; }
/** Checks whether the 'successfulAttemptId' field has been set */ public boolean hasSuccessfulAttemptId() { return fieldSetFlags()[5]; }
/** Checks whether the 'counters' field has been set */ public boolean hasCounters() { return fieldSetFlags()[4]; }
/** Creates a new TaskFinished RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.TaskFinished.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.TaskFinished.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.TaskFinished.Builder(other); }
/** Creates a new TaskFinished RecordBuilder */ public static org.apache.hadoop.mapreduce.jobhistory.TaskFinished.Builder newBuilder() { return new org.apache.hadoop.mapreduce.jobhistory.TaskFinished.Builder(); }
/** Creates a new TaskFinished RecordBuilder by copying an existing TaskFinished instance */ public static org.apache.hadoop.mapreduce.jobhistory.TaskFinished.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.TaskFinished other) { return new org.apache.hadoop.mapreduce.jobhistory.TaskFinished.Builder(other); }
/** Checks whether the 'finishTime' field has been set */ public boolean hasFinishTime() { return fieldSetFlags()[2]; }
/** Checks whether the 'taskType' field has been set */ public boolean hasTaskType() { return fieldSetFlags()[1]; }
/** Checks whether the 'finishTime' field has been set */ public boolean hasFinishTime() { return fieldSetFlags()[2]; }
/** Checks whether the 'taskid' field has been set */ public boolean hasTaskid() { return fieldSetFlags()[0]; }
/** Checks whether the 'finishTime' field has been set */ public boolean hasFinishTime() { return fieldSetFlags()[2]; }