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