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