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