/** Get the Job ID */ public JobID getJobId() { return JobID.forName(datum.getJobid().toString()); } /** Get the Job submit time */
/** Get the Job launch time */ public long getLaunchTime() { return datum.getLaunchTime(); }
/** Get the Job submit time */ public long getSubmitTime() { return datum.getSubmitTime(); } /** Get the Job launch time */
/** * Create a event to record the submit and launch time of a job * @param id Job Id * @param submitTime Submit time of the job * @param launchTime Launch time of the job */ public JobInfoChangeEvent(JobID id, long submitTime, long launchTime) { datum.setJobid(new Utf8(id.toString())); datum.setSubmitTime(submitTime); datum.setLaunchTime(launchTime); }
@Override public JobInfoChange build() { try { JobInfoChange record = new JobInfoChange(); record.jobid = fieldSetFlags()[0] ? this.jobid : (java.lang.CharSequence) defaultValue(fields()[0]); record.submitTime = fieldSetFlags()[1] ? this.submitTime : (java.lang.Long) defaultValue(fields()[1]); record.launchTime = fieldSetFlags()[2] ? this.launchTime : (java.lang.Long) defaultValue(fields()[2]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
@Override public JobInfoChange build() { try { JobInfoChange record = new JobInfoChange(); record.jobid = fieldSetFlags()[0] ? this.jobid : (java.lang.CharSequence) defaultValue(fields()[0]); record.submitTime = fieldSetFlags()[1] ? this.submitTime : (java.lang.Long) defaultValue(fields()[1]); record.launchTime = fieldSetFlags()[2] ? this.launchTime : (java.lang.Long) defaultValue(fields()[2]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
@Override public JobInfoChange build() { try { JobInfoChange record = new JobInfoChange(); record.jobid = fieldSetFlags()[0] ? this.jobid : (java.lang.CharSequence) defaultValue(fields()[0]); record.submitTime = fieldSetFlags()[1] ? this.submitTime : (java.lang.Long) defaultValue(fields()[1]); record.launchTime = fieldSetFlags()[2] ? this.launchTime : (java.lang.Long) defaultValue(fields()[2]); return record; } catch (Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
@Override public JobInfoChange build() { try { JobInfoChange record = new JobInfoChange(); record.jobid = fieldSetFlags()[0] ? this.jobid : (java.lang.CharSequence) defaultValue(fields()[0]); record.submitTime = fieldSetFlags()[1] ? this.submitTime : (java.lang.Long) defaultValue(fields()[1]); record.launchTime = fieldSetFlags()[2] ? this.launchTime : (java.lang.Long) defaultValue(fields()[2]); return record; } catch (Exception e) { throw new io.prestosql.hadoop.$internal.org.apache.avro.AvroRuntimeException(e); } } }