if (isValidValue(fields()[0], other.event_initiator)) { this.event_initiator = data().deepCopy(fields()[0].schema(), other.event_initiator); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.event_name)) { this.event_name = data().deepCopy(fields()[1].schema(), other.event_name); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.user_id)) { this.user_id = data().deepCopy(fields()[2].schema(), other.user_id); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.session_id)) { this.session_id = data().deepCopy(fields()[3].schema(), other.session_id); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.ip)) { this.ip = data().deepCopy(fields()[4].schema(), other.ip); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.timestamp)) { this.timestamp = data().deepCopy(fields()[5].schema(), other.timestamp); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.event_details)) { this.event_details = data().deepCopy(fields()[6].schema(), other.event_details); fieldSetFlags()[6] = true;
@Override public StandardEvent build() { try { StandardEvent record = new StandardEvent(); record.event_initiator = fieldSetFlags()[0] ? this.event_initiator : (org.apache.avro.util.Utf8) defaultValue(fields()[0]); record.event_name = fieldSetFlags()[1] ? this.event_name : (org.apache.avro.util.Utf8) defaultValue(fields()[1]); record.user_id = fieldSetFlags()[2] ? this.user_id : (java.lang.Long) defaultValue(fields()[2]); record.session_id = fieldSetFlags()[3] ? this.session_id : (org.apache.avro.util.Utf8) defaultValue(fields()[3]); record.ip = fieldSetFlags()[4] ? this.ip : (org.apache.avro.util.Utf8) defaultValue(fields()[4]); record.timestamp = fieldSetFlags()[5] ? this.timestamp : (java.lang.Long) defaultValue(fields()[5]); record.event_details = fieldSetFlags()[6] ? this.event_details : (java.util.Map<org.apache.avro.util.Utf8,java.lang.Object>) defaultValue(fields()[6]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
@Override public CorrelatedEvents build() { try { CorrelatedEvents record = new CorrelatedEvents(); if (eventBuilder != null) { record.event = this.eventBuilder.build(); } else { record.event = fieldSetFlags()[0] ? this.event : (org.kitesdk.data.event.StandardEvent) defaultValue(fields()[0]); } record.correlated = fieldSetFlags()[1] ? this.correlated : (java.util.List<org.kitesdk.data.event.StandardEvent>) defaultValue(fields()[1]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
if (isValidValue(fields()[0], other.event_initiator)) { this.event_initiator = data().deepCopy(fields()[0].schema(), other.event_initiator); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.event_name)) { this.event_name = data().deepCopy(fields()[1].schema(), other.event_name); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.user_id)) { this.user_id = data().deepCopy(fields()[2].schema(), other.user_id); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.session_id)) { this.session_id = data().deepCopy(fields()[3].schema(), other.session_id); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.ip)) { this.ip = data().deepCopy(fields()[4].schema(), other.ip); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.timestamp)) { this.timestamp = data().deepCopy(fields()[5].schema(), other.timestamp); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.event_details)) { this.event_details = data().deepCopy(fields()[6].schema(), other.event_details); fieldSetFlags()[6] = true;
/** Creates a Builder by copying an existing Builder */ private Builder(org.kitesdk.data.event.StandardEvent.Builder other) { super(other); if (isValidValue(fields()[0], other.event_initiator)) { this.event_initiator = data().deepCopy(fields()[0].schema(), other.event_initiator); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.event_name)) { this.event_name = data().deepCopy(fields()[1].schema(), other.event_name); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.user_id)) { this.user_id = data().deepCopy(fields()[2].schema(), other.user_id); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.session_id)) { this.session_id = data().deepCopy(fields()[3].schema(), other.session_id); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.ip)) { this.ip = data().deepCopy(fields()[4].schema(), other.ip); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.timestamp)) { this.timestamp = data().deepCopy(fields()[5].schema(), other.timestamp); fieldSetFlags()[5] = true; } }
/** Creates a Builder by copying an existing StandardEvent instance */ private Builder(org.kitesdk.data.event.StandardEvent other) { super(org.kitesdk.data.event.StandardEvent.SCHEMA$); if (isValidValue(fields()[0], other.event_initiator)) { this.event_initiator = data().deepCopy(fields()[0].schema(), other.event_initiator); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.event_name)) { this.event_name = data().deepCopy(fields()[1].schema(), other.event_name); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.user_id)) { this.user_id = data().deepCopy(fields()[2].schema(), other.user_id); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.session_id)) { this.session_id = data().deepCopy(fields()[3].schema(), other.session_id); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.ip)) { this.ip = data().deepCopy(fields()[4].schema(), other.ip); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.timestamp)) { this.timestamp = data().deepCopy(fields()[5].schema(), other.timestamp); fieldSetFlags()[5] = true; } }
/** Creates a Builder by copying an existing StandardEvent instance */ private Builder(org.kitesdk.data.event.StandardEvent other) { super(org.kitesdk.data.event.StandardEvent.SCHEMA$); if (isValidValue(fields()[0], other.event_initiator)) { this.event_initiator = data().deepCopy(fields()[0].schema(), other.event_initiator); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.event_name)) { this.event_name = data().deepCopy(fields()[1].schema(), other.event_name); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.user_id)) { this.user_id = data().deepCopy(fields()[2].schema(), other.user_id); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.session_id)) { this.session_id = data().deepCopy(fields()[3].schema(), other.session_id); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.ip)) { this.ip = data().deepCopy(fields()[4].schema(), other.ip); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.timestamp)) { this.timestamp = data().deepCopy(fields()[5].schema(), other.timestamp); fieldSetFlags()[5] = true; } }
/** Creates a Builder by copying an existing Builder */ private Builder(org.kitesdk.data.event.StandardEvent.Builder other) { super(other); if (isValidValue(fields()[0], other.event_initiator)) { this.event_initiator = data().deepCopy(fields()[0].schema(), other.event_initiator); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.event_name)) { this.event_name = data().deepCopy(fields()[1].schema(), other.event_name); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.user_id)) { this.user_id = data().deepCopy(fields()[2].schema(), other.user_id); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.session_id)) { this.session_id = data().deepCopy(fields()[3].schema(), other.session_id); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.ip)) { this.ip = data().deepCopy(fields()[4].schema(), other.ip); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.timestamp)) { this.timestamp = data().deepCopy(fields()[5].schema(), other.timestamp); fieldSetFlags()[5] = true; } }
@Override public StandardEvent build() { try { StandardEvent record = new StandardEvent(); record.event_initiator = fieldSetFlags()[0] ? this.event_initiator : (java.lang.String) defaultValue(fields()[0]); record.event_name = fieldSetFlags()[1] ? this.event_name : (java.lang.String) defaultValue(fields()[1]); record.user_id = fieldSetFlags()[2] ? this.user_id : (java.lang.Long) defaultValue(fields()[2]); record.session_id = fieldSetFlags()[3] ? this.session_id : (java.lang.String) defaultValue(fields()[3]); record.ip = fieldSetFlags()[4] ? this.ip : (java.lang.String) defaultValue(fields()[4]); record.timestamp = fieldSetFlags()[5] ? this.timestamp : (java.lang.Long) defaultValue(fields()[5]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
@Override public StandardEvent build() { try { StandardEvent record = new StandardEvent(); record.event_initiator = fieldSetFlags()[0] ? this.event_initiator : (java.lang.String) defaultValue(fields()[0]); record.event_name = fieldSetFlags()[1] ? this.event_name : (java.lang.String) defaultValue(fields()[1]); record.user_id = fieldSetFlags()[2] ? this.user_id : (java.lang.Long) defaultValue(fields()[2]); record.session_id = fieldSetFlags()[3] ? this.session_id : (java.lang.String) defaultValue(fields()[3]); record.ip = fieldSetFlags()[4] ? this.ip : (java.lang.String) defaultValue(fields()[4]); record.timestamp = fieldSetFlags()[5] ? this.timestamp : (java.lang.Long) defaultValue(fields()[5]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** Creates a new StandardEvent RecordBuilder */ public static org.kitesdk.data.event.StandardEvent.Builder newBuilder() { return new org.kitesdk.data.event.StandardEvent.Builder(); }
/** Creates a new StandardEvent RecordBuilder by copying an existing StandardEvent instance */ public static org.kitesdk.data.event.StandardEvent.Builder newBuilder(org.kitesdk.data.event.StandardEvent other) { return new org.kitesdk.data.event.StandardEvent.Builder(other); }
/** Checks whether the 'timestamp' field has been set */ public boolean hasTimestamp() { return fieldSetFlags()[5]; }
/** Checks whether the 'ip' field has been set */ public boolean hasIp() { return fieldSetFlags()[4]; }
/** Creates a new StandardEvent RecordBuilder by copying an existing Builder */ public static org.kitesdk.data.event.StandardEvent.Builder newBuilder(org.kitesdk.data.event.StandardEvent.Builder other) { return new org.kitesdk.data.event.StandardEvent.Builder(other); }
/** * Clears the value of the 'session_id' field. * A unique identifier for the session. Required. */ public org.kitesdk.data.event.StandardEvent.Builder clearSessionId() { session_id = null; fieldSetFlags()[3] = false; return this; }
/** * Checks whether the 'event_name' field has been set. * A hierarchical name for the event, with parts separated by ':'. Required. */ public boolean hasEventName() { return fieldSetFlags()[1]; }
/** * Checks whether the 'event_initiator' field has been set. * Where the event was triggered from in the format {client,server}_{user,app}, e.g. 'client_user'. Required. */ public boolean hasEventInitiator() { return fieldSetFlags()[0]; }
/** * Clears the value of the 'event_details' field. * The event-specific details as key-value pairs. Optional. */ public org.kitesdk.data.event.StandardEvent.Builder clearEventDetails() { event_details = null; fieldSetFlags()[6] = false; return this; }
/** * Checks whether the 'timestamp' field has been set. * The point in time when the event occurred, represented as the number of milliseconds since January 1, 1970, 00:00:00 GMT. Required. */ public boolean hasTimestamp() { return fieldSetFlags()[5]; }