org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged Maven / Gradle / Ivy
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory;
@SuppressWarnings("all")
@org.apache.hadoop.shaded.org.apache.avro.specific.AvroGenerated
public class JobStatusChanged extends org.apache.hadoop.shaded.org.apache.avro.specific.SpecificRecordBase implements org.apache.hadoop.shaded.org.apache.avro.specific.SpecificRecord {
public static final org.apache.hadoop.shaded.org.apache.avro.Schema SCHEMA$ = new org.apache.hadoop.shaded.org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"JobStatusChanged\",\"namespace\":\"org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory\",\"fields\":[{\"name\":\"jobid\",\"type\":\"string\"},{\"name\":\"jobStatus\",\"type\":\"string\"}]}");
public static org.apache.hadoop.shaded.org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
@Deprecated public java.lang.CharSequence jobid;
@Deprecated public java.lang.CharSequence jobStatus;
/**
* Default constructor. Note that this does not initialize fields
* to their default values from the schema. If that is desired then
* one should use newBuilder()
.
*/
public JobStatusChanged() {}
/**
* All-args constructor.
*/
public JobStatusChanged(java.lang.CharSequence jobid, java.lang.CharSequence jobStatus) {
this.jobid = jobid;
this.jobStatus = jobStatus;
}
public org.apache.hadoop.shaded.org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return jobid;
case 1: return jobStatus;
default: throw new org.apache.hadoop.shaded.org.apache.avro.AvroRuntimeException("Bad index");
}
}
// Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
switch (field$) {
case 0: jobid = (java.lang.CharSequence)value$; break;
case 1: jobStatus = (java.lang.CharSequence)value$; break;
default: throw new org.apache.hadoop.shaded.org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'jobid' field.
*/
public java.lang.CharSequence getJobid() {
return jobid;
}
/**
* Sets the value of the 'jobid' field.
* @param value the value to set.
*/
public void setJobid(java.lang.CharSequence value) {
this.jobid = value;
}
/**
* Gets the value of the 'jobStatus' field.
*/
public java.lang.CharSequence getJobStatus() {
return jobStatus;
}
/**
* Sets the value of the 'jobStatus' field.
* @param value the value to set.
*/
public void setJobStatus(java.lang.CharSequence value) {
this.jobStatus = value;
}
/** Creates a new JobStatusChanged RecordBuilder */
public static org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder() {
return new org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder();
}
/** Creates a new JobStatusChanged RecordBuilder by copying an existing Builder */
public static org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder other) {
return new org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder(other);
}
/** Creates a new JobStatusChanged RecordBuilder by copying an existing JobStatusChanged instance */
public static org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged other) {
return new org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder(other);
}
/**
* RecordBuilder for JobStatusChanged instances.
*/
public static class Builder extends org.apache.hadoop.shaded.org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.hadoop.shaded.org.apache.avro.data.RecordBuilder {
private java.lang.CharSequence jobid;
private java.lang.CharSequence jobStatus;
/** Creates a new Builder */
private Builder() {
super(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder other) {
super(other);
if (isValidValue(fields()[0], other.jobid)) {
this.jobid = data().deepCopy(fields()[0].schema(), other.jobid);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.jobStatus)) {
this.jobStatus = data().deepCopy(fields()[1].schema(), other.jobStatus);
fieldSetFlags()[1] = true;
}
}
/** Creates a Builder by copying an existing JobStatusChanged instance */
private Builder(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged other) {
super(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.SCHEMA$);
if (isValidValue(fields()[0], other.jobid)) {
this.jobid = data().deepCopy(fields()[0].schema(), other.jobid);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.jobStatus)) {
this.jobStatus = data().deepCopy(fields()[1].schema(), other.jobStatus);
fieldSetFlags()[1] = true;
}
}
/** Gets the value of the 'jobid' field */
public java.lang.CharSequence getJobid() {
return jobid;
}
/** Sets the value of the 'jobid' field */
public org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder setJobid(java.lang.CharSequence value) {
validate(fields()[0], value);
this.jobid = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'jobid' field has been set */
public boolean hasJobid() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'jobid' field */
public org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder clearJobid() {
jobid = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'jobStatus' field */
public java.lang.CharSequence getJobStatus() {
return jobStatus;
}
/** Sets the value of the 'jobStatus' field */
public org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder setJobStatus(java.lang.CharSequence value) {
validate(fields()[1], value);
this.jobStatus = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'jobStatus' field has been set */
public boolean hasJobStatus() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'jobStatus' field */
public org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobStatusChanged.Builder clearJobStatus() {
jobStatus = null;
fieldSetFlags()[1] = false;
return this;
}
@Override
public JobStatusChanged build() {
try {
JobStatusChanged record = new JobStatusChanged();
record.jobid = fieldSetFlags()[0] ? this.jobid : (java.lang.CharSequence) defaultValue(fields()[0]);
record.jobStatus = fieldSetFlags()[1] ? this.jobStatus : (java.lang.CharSequence) defaultValue(fields()[1]);
return record;
} catch (Exception e) {
throw new org.apache.hadoop.shaded.org.apache.avro.AvroRuntimeException(e);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy