/** Creates a Builder by copying an existing JobStatusChanged instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged other) { super(org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.SCHEMA$); if (isValidValue(fields()[0], other.jobid)) { this.jobid = data().deepCopy(fields()[0].schema(), other.jobid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.jobStatus)) { this.jobStatus = data().deepCopy(fields()[1].schema(), other.jobStatus); fieldSetFlags()[1] = true; } }
@Override public JobStatusChanged build() { try { JobStatusChanged record = new JobStatusChanged(); record.jobid = fieldSetFlags()[0] ? this.jobid : (java.lang.CharSequence) defaultValue(fields()[0]); record.jobStatus = fieldSetFlags()[1] ? this.jobStatus : (java.lang.CharSequence) defaultValue(fields()[1]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Checks whether the 'jobStatus' field has been set */ public boolean hasJobStatus() { return fieldSetFlags()[1]; }
/** Checks whether the 'jobid' field has been set */ public boolean hasJobid() { return fieldSetFlags()[0]; }
/** Checks whether the 'jobStatus' field has been set */ public boolean hasJobStatus() { return fieldSetFlags()[1]; }
/** Checks whether the 'jobid' field has been set */ public boolean hasJobid() { return fieldSetFlags()[0]; }
/** Creates a new JobStatusChanged RecordBuilder by copying an existing JobStatusChanged instance */ public static org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged other) { return new org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder(other); }
/** Creates a new JobStatusChanged RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder(other); }
/** Creates a new JobStatusChanged RecordBuilder by copying an existing JobStatusChanged instance */ public static org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged other) { return new org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder(other); }
/** Creates a new JobStatusChanged RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder(other); }
/** Creates a new JobStatusChanged RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder(other); }
/** Checks whether the 'jobid' field has been set */ public boolean hasJobid() { return fieldSetFlags()[0]; }
/** Creates a new JobStatusChanged RecordBuilder by copying an existing JobStatusChanged instance */ public static org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged other) { return new org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder(other); }
/** Creates a new JobStatusChanged RecordBuilder */ public static org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder() { return new org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder(); }
/** Creates a new JobStatusChanged RecordBuilder by copying an existing JobStatusChanged instance */ public static org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged other) { return new org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder(other); }
/** Clears the value of the 'jobid' field */ public org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder clearJobid() { jobid = null; fieldSetFlags()[0] = false; return this; }
/** Checks whether the 'jobStatus' field has been set */ public boolean hasJobStatus() { return fieldSetFlags()[1]; }
/** Creates a new JobStatusChanged RecordBuilder */ public static org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder() { return new org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder(); }
/** Sets the value of the 'jobStatus' field */ public org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder setJobStatus(java.lang.CharSequence value) { validate(fields()[1], value); this.jobStatus = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'jobid' field */ public org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder setJobid(java.lang.CharSequence value) { validate(fields()[0], value); this.jobid = value; fieldSetFlags()[0] = true; return this; }