/** 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 org.apache.avro.AvroRuntimeException(e); } } }
/** 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; } }
/** Checks whether the 'displayName' field has been set */ public boolean hasDisplayName() { return fieldSetFlags()[1]; }
/** Checks whether the 'counts' field has been set */ public boolean hasCounts() { return fieldSetFlags()[2]; }
/** Creates a new JhCounterGroup RecordBuilder by copying an existing JhCounterGroup instance */ public static org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup other) { return new org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder(other); }
/** Creates a new JhCounterGroup RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder(other); }
/** Creates a new JhCounterGroup RecordBuilder */ public static org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder newBuilder() { return new org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder(); }
/** Checks whether the 'displayName' field has been set */ public boolean hasDisplayName() { return fieldSetFlags()[1]; }
/** Creates a new JhCounterGroup RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder(other); }
/** Checks whether the 'name' field has been set */ public boolean hasName() { return fieldSetFlags()[0]; }
/** Creates a new JhCounterGroup RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder(other); }
/** Creates a new JhCounterGroup RecordBuilder by copying an existing JhCounterGroup instance */ public static org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup other) { return new org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder(other); }
@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); } } }
/** Creates a new JhCounterGroup RecordBuilder */ public static org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder newBuilder() { return new org.apache.hadoop.mapreduce.jobhistory.JhCounterGroup.Builder(); }
/** Checks whether the 'counts' field has been set */ public boolean hasCounts() { return fieldSetFlags()[2]; }
/** Checks whether the 'displayName' field has been set */ public boolean hasDisplayName() { return fieldSetFlags()[1]; }
/** Checks whether the 'displayName' field has been set */ public boolean hasDisplayName() { return fieldSetFlags()[1]; }