/** Creates a Builder by copying an existing Event instance */ private Builder(org.apache.hadoop.mapreduce.jobhistory.Event other) { super(org.apache.hadoop.mapreduce.jobhistory.Event.SCHEMA$); if (isValidValue(fields()[0], other.type)) { this.type = data().deepCopy(fields()[0].schema(), other.type); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.event)) { this.event = data().deepCopy(fields()[1].schema(), other.event); fieldSetFlags()[1] = true; } }
@Override public Event build() { try { Event record = new Event(); record.type = fieldSetFlags()[0] ? this.type : (org.apache.hadoop.mapreduce.jobhistory.EventType) defaultValue(fields()[0]); record.event = fieldSetFlags()[1] ? this.event : (java.lang.Object) defaultValue(fields()[1]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Checks whether the 'event' field has been set */ public boolean hasEvent() { return fieldSetFlags()[1]; }
/** Checks whether the 'type' field has been set */ public boolean hasType() { return fieldSetFlags()[0]; }
/** Creates a new Event RecordBuilder by copying an existing Event instance */ public static org.apache.hadoop.mapreduce.jobhistory.Event.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.Event other) { return new org.apache.hadoop.mapreduce.jobhistory.Event.Builder(other); }
/** Creates a new Event RecordBuilder by copying an existing Event instance */ public static org.apache.hadoop.mapreduce.jobhistory.Event.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.Event other) { return new org.apache.hadoop.mapreduce.jobhistory.Event.Builder(other); }
/** Checks whether the 'event' field has been set */ public boolean hasEvent() { return fieldSetFlags()[1]; }
/** Checks whether the 'type' field has been set */ public boolean hasType() { return fieldSetFlags()[0]; }
/** Creates a new Event RecordBuilder */ public static org.apache.hadoop.mapreduce.jobhistory.Event.Builder newBuilder() { return new org.apache.hadoop.mapreduce.jobhistory.Event.Builder(); }
/** Checks whether the 'type' field has been set */ public boolean hasType() { return fieldSetFlags()[0]; }
/** Checks whether the 'event' field has been set */ public boolean hasEvent() { return fieldSetFlags()[1]; }
/** Checks whether the 'event' field has been set */ public boolean hasEvent() { return fieldSetFlags()[1]; }
/** Checks whether the 'type' field has been set */ public boolean hasType() { return fieldSetFlags()[0]; }
/** Creates a new Event RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.Event.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.Event.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.Event.Builder(other); }
/** Creates a new Event RecordBuilder by copying an existing Event instance */ public static org.apache.hadoop.mapreduce.jobhistory.Event.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.Event other) { return new org.apache.hadoop.mapreduce.jobhistory.Event.Builder(other); }
/** Creates a new Event RecordBuilder */ public static org.apache.hadoop.mapreduce.jobhistory.Event.Builder newBuilder() { return new org.apache.hadoop.mapreduce.jobhistory.Event.Builder(); }
/** Creates a new Event RecordBuilder by copying an existing Builder */ public static org.apache.hadoop.mapreduce.jobhistory.Event.Builder newBuilder(org.apache.hadoop.mapreduce.jobhistory.Event.Builder other) { return new org.apache.hadoop.mapreduce.jobhistory.Event.Builder(other); }
/** Clears the value of the 'type' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder clearType() { type = null; fieldSetFlags()[0] = false; return this; }
/** Clears the value of the 'event' field */ public org.apache.hadoop.mapreduce.jobhistory.Event.Builder clearEvent() { event = null; fieldSetFlags()[1] = false; return this; }
/** Creates a new Event RecordBuilder */ public static org.apache.hadoop.mapreduce.jobhistory.Event.Builder newBuilder() { return new org.apache.hadoop.mapreduce.jobhistory.Event.Builder(); }