/** Creates a Builder by copying an existing TaskStarted instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskStarted other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskStarted.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.startTime)) { this.startTime = data().deepCopy(fields()[2].schema(), other.startTime); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.splitLocations)) { this.splitLocations = data().deepCopy(fields()[3].schema(), other.splitLocations); fieldSetFlags()[3] = true; } }
@Override public TaskStarted build() { try { TaskStarted record = new TaskStarted(); 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.startTime = fieldSetFlags()[2] ? this.startTime : (java.lang.Long) defaultValue(fields()[2]); record.splitLocations = fieldSetFlags()[3] ? this.splitLocations : (java.lang.CharSequence) defaultValue(fields()[3]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Creates a Builder by copying an existing TaskStarted instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskStarted other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskStarted.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.startTime)) { this.startTime = data().deepCopy(fields()[2].schema(), other.startTime); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.splitLocations)) { this.splitLocations = data().deepCopy(fields()[3].schema(), other.splitLocations); fieldSetFlags()[3] = true; } }
/** Creates a Builder by copying an existing TaskStarted instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskStarted other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskStarted.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.startTime)) { this.startTime = data().deepCopy(fields()[2].schema(), other.startTime); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.splitLocations)) { this.splitLocations = data().deepCopy(fields()[3].schema(), other.splitLocations); fieldSetFlags()[3] = true; } }
/** Creates a Builder by copying an existing TaskStarted instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.TaskStarted other) { super(org.apache.hadoop.mapreduce.jobhistory.TaskStarted.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.startTime)) { this.startTime = data().deepCopy(fields()[2].schema(), other.startTime); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.splitLocations)) { this.splitLocations = data().deepCopy(fields()[3].schema(), other.splitLocations); fieldSetFlags()[3] = true; } }
@Override public TaskStarted build() { try { TaskStarted record = new TaskStarted(); 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.startTime = fieldSetFlags()[2] ? this.startTime : (java.lang.Long) defaultValue(fields()[2]); record.splitLocations = fieldSetFlags()[3] ? this.splitLocations : (java.lang.CharSequence) defaultValue(fields()[3]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Checks whether the 'startTime' field has been set */ public boolean hasStartTime() { return fieldSetFlags()[2]; }
/** Checks whether the 'taskType' field has been set */ public boolean hasTaskType() { return fieldSetFlags()[1]; }
/** Creates a new TaskStarted RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder(other); }
/** Creates a new TaskStarted RecordBuilder by copying an existing TaskStarted instance */ public static org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.TaskStarted other) { return new org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder(other); }
/** Creates a new TaskStarted RecordBuilder */ public static org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder newBuilder() { return new org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder(); }
/** Checks whether the 'splitLocations' field has been set */ public boolean hasSplitLocations() { return fieldSetFlags()[3]; }
/** Checks whether the 'taskType' field has been set */ public boolean hasTaskType() { return fieldSetFlags()[1]; }
@Override public TaskStarted build() { try { TaskStarted record = new TaskStarted(); 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.startTime = fieldSetFlags()[2] ? this.startTime : (java.lang.Long) defaultValue(fields()[2]); record.splitLocations = fieldSetFlags()[3] ? this.splitLocations : (java.lang.CharSequence) defaultValue(fields()[3]); return record; } catch (Exception e) { throw new io.prestosql.hadoop.$internal.org.apache.avro.AvroRuntimeException(e); } } }
@Override public TaskStarted build() { try { TaskStarted record = new TaskStarted(); 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.startTime = fieldSetFlags()[2] ? this.startTime : (java.lang.Long) defaultValue(fields()[2]); record.splitLocations = fieldSetFlags()[3] ? this.splitLocations : (java.lang.CharSequence) defaultValue(fields()[3]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Checks whether the 'splitLocations' field has been set */ public boolean hasSplitLocations() { return fieldSetFlags()[3]; }
/** Checks whether the 'startTime' field has been set */ public boolean hasStartTime() { return fieldSetFlags()[2]; }
/** Creates a new TaskStarted RecordBuilder by copying an existing TaskStarted instance */ public static org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.TaskStarted other) { return new org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder(other); }
/** Creates a new TaskStarted RecordBuilder */ public static org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder newBuilder() { return new org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder(); }
/** Creates a new TaskStarted RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.TaskStarted.Builder(other); }