/** Creates a Builder by copying an existing TaskUpdated instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskUpdated other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.SCHEMA$); if (isValidValue(fields()[0], other.taskid)) { this.taskid = data().deepCopy(fields()[0].schema(), other.taskid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.finishTime)) { this.finishTime = data().deepCopy(fields()[1].schema(), other.finishTime); fieldSetFlags()[1] = true; } }
/** Creates a Builder by copying an existing TaskUpdated instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskUpdated other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.SCHEMA$); if (isValidValue(fields()[0], other.taskid)) { this.taskid = data().deepCopy(fields()[0].schema(), other.taskid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.finishTime)) { this.finishTime = data().deepCopy(fields()[1].schema(), other.finishTime); fieldSetFlags()[1] = true; } }
/** Creates a Builder by copying an existing TaskUpdated instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskUpdated other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.SCHEMA$); if (isValidValue(fields()[0], other.taskid)) { this.taskid = data().deepCopy(fields()[0].schema(), other.taskid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.finishTime)) { this.finishTime = data().deepCopy(fields()[1].schema(), other.finishTime); fieldSetFlags()[1] = true; } }
@Override public TaskUpdated build() { try { TaskUpdated record = new TaskUpdated(); record.taskid = fieldSetFlags()[0] ? this.taskid : (java.lang.CharSequence) defaultValue(fields()[0]); record.finishTime = fieldSetFlags()[1] ? this.finishTime : (java.lang.Long) defaultValue(fields()[1]); return record; } catch (Exception e) { throw new io.prestosql.hadoop.$internal.org.apache.avro.AvroRuntimeException(e); } } }
/** Sets the value of the 'finishTime' field */ public org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.Builder setFinishTime(long value) { validate(fields()[1], value); this.finishTime = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'taskid' field */ public org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.Builder setTaskid(java.lang.CharSequence value) { validate(fields()[0], value); this.taskid = value; fieldSetFlags()[0] = true; return this; }
/** Sets the value of the 'taskid' field */ public org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.Builder setTaskid(java.lang.CharSequence value) { validate(fields()[0], value); this.taskid = value; fieldSetFlags()[0] = true; return this; }
/** Creates a Builder by copying an existing TaskUpdated instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskUpdated other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.SCHEMA$); if (isValidValue(fields()[0], other.taskid)) { this.taskid = data().deepCopy(fields()[0].schema(), other.taskid); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.finishTime)) { this.finishTime = data().deepCopy(fields()[1].schema(), other.finishTime); fieldSetFlags()[1] = true; } }
/** Sets the value of the 'finishTime' field */ public org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.Builder setFinishTime(long value) { validate(fields()[1], value); this.finishTime = value; fieldSetFlags()[1] = true; return this; }
@Override public TaskUpdated build() { try { TaskUpdated record = new TaskUpdated(); record.taskid = fieldSetFlags()[0] ? this.taskid : (java.lang.CharSequence) defaultValue(fields()[0]); record.finishTime = fieldSetFlags()[1] ? this.finishTime : (java.lang.Long) defaultValue(fields()[1]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Sets the value of the 'finishTime' field */ public org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.Builder setFinishTime(long value) { validate(fields()[1], value); this.finishTime = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'taskid' field */ public org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.Builder setTaskid(java.lang.CharSequence value) { validate(fields()[0], value); this.taskid = value; fieldSetFlags()[0] = true; return this; }
@Override public TaskUpdated build() { try { TaskUpdated record = new TaskUpdated(); record.taskid = fieldSetFlags()[0] ? this.taskid : (java.lang.CharSequence) defaultValue(fields()[0]); record.finishTime = fieldSetFlags()[1] ? this.finishTime : (java.lang.Long) defaultValue(fields()[1]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Sets the value of the 'taskid' field */ public org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.Builder setTaskid(java.lang.CharSequence value) { validate(fields()[0], value); this.taskid = value; fieldSetFlags()[0] = true; return this; }
/** Sets the value of the 'finishTime' field */ public org.apache.hadoop.mapreduce.jobhistory.TaskUpdated.Builder setFinishTime(long value) { validate(fields()[1], value); this.finishTime = value; fieldSetFlags()[1] = true; return this; }
@Override public TaskUpdated build() { try { TaskUpdated record = new TaskUpdated(); record.taskid = fieldSetFlags()[0] ? this.taskid : (java.lang.CharSequence) defaultValue(fields()[0]); record.finishTime = fieldSetFlags()[1] ? this.finishTime : (java.lang.Long) defaultValue(fields()[1]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }