/** Creates a Builder by copying an existing JhCounterGroup instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup other) { super(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.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.counts)) { this.counts = data().deepCopy(fields()[2].schema(), other.counts); fieldSetFlags()[2] = true; } }
/** Creates a Builder by copying an existing JhCounterGroup instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup other) { super(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.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.counts)) { this.counts = data().deepCopy(fields()[2].schema(), other.counts); fieldSetFlags()[2] = true; } }
/** Creates a Builder by copying an existing JhCounterGroup instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup other) { super(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.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.counts)) { this.counts = data().deepCopy(fields()[2].schema(), other.counts); fieldSetFlags()[2] = true; } }
/** Creates a Builder by copying an existing JhCounterGroup instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup other) { super(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.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.counts)) { this.counts = data().deepCopy(fields()[2].schema(), other.counts); fieldSetFlags()[2] = true; } }
@Override public JhCounterGroup build() { try { JhCounterGroup record = new JhCounterGroup(); 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.counts = fieldSetFlags()[2] ? this.counts : (java.util.List<org.apache.hadoop.mapreduce.jobhistory.JhCounter>) defaultValue(fields()[2]); return record; } catch (Exception e) { throw new io.prestosql.hadoop.$internal.org.apache.avro.AvroRuntimeException(e); } } }
@Override public JhCounterGroup build() { try { JhCounterGroup record = new JhCounterGroup(); 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.counts = fieldSetFlags()[2] ? this.counts : (java.util.List<org.apache.hadoop.mapreduce.jobhistory.JhCounter>) defaultValue(fields()[2]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Sets the value of the 'name' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder setName(java.lang.CharSequence value) { validate(fields()[0], value); this.name = value; fieldSetFlags()[0] = true; return this; }
/** Sets the value of the 'counts' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder setCounts(java.util.List<org.apache.hadoop.mapreduce.jobhistory.JhCounter> value) { validate(fields()[2], value); this.counts = value; fieldSetFlags()[2] = true; return this; }
/** Sets the value of the 'name' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder setName(java.lang.CharSequence value) { validate(fields()[0], value); this.name = value; fieldSetFlags()[0] = true; return this; }
@Override public JhCounterGroup build() { try { JhCounterGroup record = new JhCounterGroup(); 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.counts = fieldSetFlags()[2] ? this.counts : (java.util.List<org.apache.hadoop.mapreduce.jobhistory.JhCounter>) defaultValue(fields()[2]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
@Override public JhCounterGroup build() { try { JhCounterGroup record = new JhCounterGroup(); 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.counts = fieldSetFlags()[2] ? this.counts : (java.util.List<org.apache.hadoop.mapreduce.jobhistory.JhCounter>) defaultValue(fields()[2]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Sets the value of the 'counts' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder setCounts(java.util.List<org.apache.hadoop.mapreduce.jobhistory.JhCounter> value) { validate(fields()[2], value); this.counts = value; fieldSetFlags()[2] = true; return this; }
/** Sets the value of the 'displayName' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder setDisplayName(java.lang.CharSequence value) { validate(fields()[1], value); this.displayName = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'displayName' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder setDisplayName(java.lang.CharSequence value) { validate(fields()[1], value); this.displayName = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'displayName' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder setDisplayName(java.lang.CharSequence value) { validate(fields()[1], value); this.displayName = value; fieldSetFlags()[1] = true; return this; }
/** Sets the value of the 'counts' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder setCounts(java.util.List<org.apache.hadoop.mapreduce.jobhistory.JhCounter> value) { validate(fields()[2], value); this.counts = value; fieldSetFlags()[2] = true; return this; }
/** Sets the value of the 'displayName' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.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.JhCounterGroup.Builder setName(java.lang.CharSequence value) { validate(fields()[0], value); this.name = value; fieldSetFlags()[0] = true; return this; }
/** Sets the value of the 'counts' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder setCounts(java.util.List<org.apache.hadoop.mapreduce.jobhistory.JhCounter> value) { validate(fields()[2], value); this.counts = value; fieldSetFlags()[2] = true; return this; }
/** Sets the value of the 'name' field */ public org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder setName(java.lang.CharSequence value) { validate(fields()[0], value); this.name = value; fieldSetFlags()[0] = true; return this; }