/** Creates a Builder by copying an existing JobUnsuccessfulCompletion instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion other) { super(org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.SCHEMA$); if (isValidValue(fields()[0], other.jobid)) { this.jobid = data().deepCopy(fields()[0].schema(), other.jobid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.finishTime)) { this.finishTime = data().deepCopy(fields()[1].schema(), other.finishTime); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.finishedMaps)) { this.finishedMaps = data().deepCopy(fields()[2].schema(), other.finishedMaps); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.finishedReduces)) { this.finishedReduces = data().deepCopy(fields()[3].schema(), other.finishedReduces); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.jobStatus)) { this.jobStatus = data().deepCopy(fields()[4].schema(), other.jobStatus); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.diagnostics)) { this.diagnostics = data().deepCopy(fields()[5].schema(), other.diagnostics); fieldSetFlags()[5] = true; } }
@Override public JobUnsuccessfulCompletion build() { try { JobUnsuccessfulCompletion record = new JobUnsuccessfulCompletion(); record.jobid = fieldSetFlags()[0] ? this.jobid : (java.lang.CharSequence) defaultValue(fields()[0]); record.finishTime = fieldSetFlags()[1] ? this.finishTime : (java.lang.Long) defaultValue(fields()[1]); record.finishedMaps = fieldSetFlags()[2] ? this.finishedMaps : (java.lang.Integer) defaultValue(fields()[2]); record.finishedReduces = fieldSetFlags()[3] ? this.finishedReduces : (java.lang.Integer) defaultValue(fields()[3]); record.jobStatus = fieldSetFlags()[4] ? this.jobStatus : (java.lang.CharSequence) defaultValue(fields()[4]); record.diagnostics = fieldSetFlags()[5] ? this.diagnostics : (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 JobUnsuccessfulCompletion instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion other) { super(org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.SCHEMA$); if (isValidValue(fields()[0], other.jobid)) { this.jobid = data().deepCopy(fields()[0].schema(), other.jobid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.finishTime)) { this.finishTime = data().deepCopy(fields()[1].schema(), other.finishTime); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.finishedMaps)) { this.finishedMaps = data().deepCopy(fields()[2].schema(), other.finishedMaps); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.finishedReduces)) { this.finishedReduces = data().deepCopy(fields()[3].schema(), other.finishedReduces); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.jobStatus)) { this.jobStatus = data().deepCopy(fields()[4].schema(), other.jobStatus); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.diagnostics)) { this.diagnostics = data().deepCopy(fields()[5].schema(), other.diagnostics); fieldSetFlags()[5] = true; } }
/** Creates a Builder by copying an existing JobUnsuccessfulCompletion instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion other) { super(org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.SCHEMA$); if (isValidValue(fields()[0], other.jobid)) { this.jobid = data().deepCopy(fields()[0].schema(), other.jobid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.finishTime)) { this.finishTime = data().deepCopy(fields()[1].schema(), other.finishTime); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.finishedMaps)) { this.finishedMaps = data().deepCopy(fields()[2].schema(), other.finishedMaps); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.finishedReduces)) { this.finishedReduces = data().deepCopy(fields()[3].schema(), other.finishedReduces); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.jobStatus)) { this.jobStatus = data().deepCopy(fields()[4].schema(), other.jobStatus); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.diagnostics)) { this.diagnostics = data().deepCopy(fields()[5].schema(), other.diagnostics); fieldSetFlags()[5] = true; } }
/** Creates a Builder by copying an existing JobUnsuccessfulCompletion instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion other) { super(org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.SCHEMA$); if (isValidValue(fields()[0], other.jobid)) { this.jobid = data().deepCopy(fields()[0].schema(), other.jobid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.finishTime)) { this.finishTime = data().deepCopy(fields()[1].schema(), other.finishTime); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.finishedMaps)) { this.finishedMaps = data().deepCopy(fields()[2].schema(), other.finishedMaps); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.finishedReduces)) { this.finishedReduces = data().deepCopy(fields()[3].schema(), other.finishedReduces); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.jobStatus)) { this.jobStatus = data().deepCopy(fields()[4].schema(), other.jobStatus); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.diagnostics)) { this.diagnostics = data().deepCopy(fields()[5].schema(), other.diagnostics); fieldSetFlags()[5] = true; } }
@Override public JobUnsuccessfulCompletion build() { try { JobUnsuccessfulCompletion record = new JobUnsuccessfulCompletion(); record.jobid = fieldSetFlags()[0] ? this.jobid : (java.lang.CharSequence) defaultValue(fields()[0]); record.finishTime = fieldSetFlags()[1] ? this.finishTime : (java.lang.Long) defaultValue(fields()[1]); record.finishedMaps = fieldSetFlags()[2] ? this.finishedMaps : (java.lang.Integer) defaultValue(fields()[2]); record.finishedReduces = fieldSetFlags()[3] ? this.finishedReduces : (java.lang.Integer) defaultValue(fields()[3]); record.jobStatus = fieldSetFlags()[4] ? this.jobStatus : (java.lang.CharSequence) defaultValue(fields()[4]); record.diagnostics = fieldSetFlags()[5] ? this.diagnostics : (java.lang.CharSequence) defaultValue(fields()[5]); return record; } catch (Exception e) { throw new io.prestosql.hadoop.$internal.org.apache.avro.AvroRuntimeException(e); } } }
@Override public JobUnsuccessfulCompletion build() { try { JobUnsuccessfulCompletion record = new JobUnsuccessfulCompletion(); record.jobid = fieldSetFlags()[0] ? this.jobid : (java.lang.CharSequence) defaultValue(fields()[0]); record.finishTime = fieldSetFlags()[1] ? this.finishTime : (java.lang.Long) defaultValue(fields()[1]); record.finishedMaps = fieldSetFlags()[2] ? this.finishedMaps : (java.lang.Integer) defaultValue(fields()[2]); record.finishedReduces = fieldSetFlags()[3] ? this.finishedReduces : (java.lang.Integer) defaultValue(fields()[3]); record.jobStatus = fieldSetFlags()[4] ? this.jobStatus : (java.lang.CharSequence) defaultValue(fields()[4]); record.diagnostics = fieldSetFlags()[5] ? this.diagnostics : (java.lang.CharSequence) defaultValue(fields()[5]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Checks whether the 'diagnostics' field has been set */ public boolean hasDiagnostics() { return fieldSetFlags()[5]; }
/** Checks whether the 'finishedReduces' field has been set */ public boolean hasFinishedReduces() { return fieldSetFlags()[3]; }
/** Checks whether the 'jobStatus' field has been set */ public boolean hasJobStatus() { return fieldSetFlags()[4]; }
/** Checks whether the 'finishedReduces' field has been set */ public boolean hasFinishedReduces() { return fieldSetFlags()[3]; }
@Override public JobUnsuccessfulCompletion build() { try { JobUnsuccessfulCompletion record = new JobUnsuccessfulCompletion(); record.jobid = fieldSetFlags()[0] ? this.jobid : (java.lang.CharSequence) defaultValue(fields()[0]); record.finishTime = fieldSetFlags()[1] ? this.finishTime : (java.lang.Long) defaultValue(fields()[1]); record.finishedMaps = fieldSetFlags()[2] ? this.finishedMaps : (java.lang.Integer) defaultValue(fields()[2]); record.finishedReduces = fieldSetFlags()[3] ? this.finishedReduces : (java.lang.Integer) defaultValue(fields()[3]); record.jobStatus = fieldSetFlags()[4] ? this.jobStatus : (java.lang.CharSequence) defaultValue(fields()[4]); record.diagnostics = fieldSetFlags()[5] ? this.diagnostics : (java.lang.CharSequence) defaultValue(fields()[5]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Creates a new JobUnsuccessfulCompletion RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder(other); }
/** Creates a new JobUnsuccessfulCompletion RecordBuilder by copying an existing JobUnsuccessfulCompletion instance */ public static org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion other) { return new org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder(other); }
/** Checks whether the 'diagnostics' field has been set */ public boolean hasDiagnostics() { return fieldSetFlags()[5]; }
/** Checks whether the 'finishedMaps' field has been set */ public boolean hasFinishedMaps() { return fieldSetFlags()[2]; }
/** Creates a new JobUnsuccessfulCompletion RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder(other); }
/** Creates a new JobUnsuccessfulCompletion RecordBuilder */ public static org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder newBuilder() { return new org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder(); }
/** Clears the value of the 'diagnostics' field */ public org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder clearDiagnostics() { diagnostics = null; fieldSetFlags()[5] = false; return this; }
/** Clears the value of the 'jobid' field */ public org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletion.Builder clearJobid() { jobid = null; fieldSetFlags()[0] = false; return this; }