Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.gel.models.participant.avro;
@SuppressWarnings("all")
/** Chi-square test for goodness of fit of this sample to 1000 Genomes Phase 3 populations */
@org.apache.avro.specific.AvroGenerated
public class ChiSquare1KGenomesPhase3Pop extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"ChiSquare1KGenomesPhase3Pop\",\"namespace\":\"org.gel.models.participant.avro\",\"doc\":\"Chi-square test for goodness of fit of this sample to 1000 Genomes Phase 3 populations\",\"fields\":[{\"name\":\"kgSuperPopCategory\",\"type\":{\"type\":\"enum\",\"name\":\"KgSuperPopCategory\",\"doc\":\"1K Genomes project super populations\",\"symbols\":[\"AFR\",\"AMR\",\"EAS\",\"EUR\",\"SAS\"]},\"doc\":\"1K Super Population\"},{\"name\":\"kgPopCategory\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"KgPopCategory\",\"doc\":\"1K Genomes project populations\",\"symbols\":[\"ACB\",\"ASW\",\"BEB\",\"CDX\",\"CEU\",\"CHB\",\"CHS\",\"CLM\",\"ESN\",\"FIN\",\"GBR\",\"GIH\",\"GWD\",\"IBS\",\"ITU\",\"JPT\",\"KHV\",\"LWK\",\"MSL\",\"MXL\",\"PEL\",\"PJL\",\"PUR\",\"STU\",\"TSI\",\"YRI\"]}],\"doc\":\"1K Population\"},{\"name\":\"chiSquare\",\"type\":\"double\",\"doc\":\"Chi-square test for goodness of fit of this sample to this 1000 Genomes Phase 3 population\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** 1K Super Population */
private org.gel.models.participant.avro.KgSuperPopCategory kgSuperPopCategory;
/** 1K Population */
private org.gel.models.participant.avro.KgPopCategory kgPopCategory;
/** Chi-square test for goodness of fit of this sample to this 1000 Genomes Phase 3 population */
private double chiSquare;
/**
* 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 ChiSquare1KGenomesPhase3Pop() {}
/**
* All-args constructor.
*/
public ChiSquare1KGenomesPhase3Pop(org.gel.models.participant.avro.KgSuperPopCategory kgSuperPopCategory, org.gel.models.participant.avro.KgPopCategory kgPopCategory, java.lang.Double chiSquare) {
this.kgSuperPopCategory = kgSuperPopCategory;
this.kgPopCategory = kgPopCategory;
this.chiSquare = chiSquare;
}
public 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 kgSuperPopCategory;
case 1: return kgPopCategory;
case 2: return chiSquare;
default: throw new 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: kgSuperPopCategory = (org.gel.models.participant.avro.KgSuperPopCategory)value$; break;
case 1: kgPopCategory = (org.gel.models.participant.avro.KgPopCategory)value$; break;
case 2: chiSquare = (java.lang.Double)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'kgSuperPopCategory' field.
* 1K Super Population */
public org.gel.models.participant.avro.KgSuperPopCategory getKgSuperPopCategory() {
return kgSuperPopCategory;
}
/**
* Sets the value of the 'kgSuperPopCategory' field.
* 1K Super Population * @param value the value to set.
*/
public void setKgSuperPopCategory(org.gel.models.participant.avro.KgSuperPopCategory value) {
this.kgSuperPopCategory = value;
}
/**
* Gets the value of the 'kgPopCategory' field.
* 1K Population */
public org.gel.models.participant.avro.KgPopCategory getKgPopCategory() {
return kgPopCategory;
}
/**
* Sets the value of the 'kgPopCategory' field.
* 1K Population * @param value the value to set.
*/
public void setKgPopCategory(org.gel.models.participant.avro.KgPopCategory value) {
this.kgPopCategory = value;
}
/**
* Gets the value of the 'chiSquare' field.
* Chi-square test for goodness of fit of this sample to this 1000 Genomes Phase 3 population */
public java.lang.Double getChiSquare() {
return chiSquare;
}
/**
* Sets the value of the 'chiSquare' field.
* Chi-square test for goodness of fit of this sample to this 1000 Genomes Phase 3 population * @param value the value to set.
*/
public void setChiSquare(java.lang.Double value) {
this.chiSquare = value;
}
/** Creates a new ChiSquare1KGenomesPhase3Pop RecordBuilder */
public static org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder newBuilder() {
return new org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder();
}
/** Creates a new ChiSquare1KGenomesPhase3Pop RecordBuilder by copying an existing Builder */
public static org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder newBuilder(org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder other) {
return new org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder(other);
}
/** Creates a new ChiSquare1KGenomesPhase3Pop RecordBuilder by copying an existing ChiSquare1KGenomesPhase3Pop instance */
public static org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder newBuilder(org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop other) {
return new org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder(other);
}
/**
* RecordBuilder for ChiSquare1KGenomesPhase3Pop instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private org.gel.models.participant.avro.KgSuperPopCategory kgSuperPopCategory;
private org.gel.models.participant.avro.KgPopCategory kgPopCategory;
private double chiSquare;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder other) {
super(other);
if (isValidValue(fields()[0], other.kgSuperPopCategory)) {
this.kgSuperPopCategory = data().deepCopy(fields()[0].schema(), other.kgSuperPopCategory);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.kgPopCategory)) {
this.kgPopCategory = data().deepCopy(fields()[1].schema(), other.kgPopCategory);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.chiSquare)) {
this.chiSquare = data().deepCopy(fields()[2].schema(), other.chiSquare);
fieldSetFlags()[2] = true;
}
}
/** Creates a Builder by copying an existing ChiSquare1KGenomesPhase3Pop instance */
private Builder(org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop other) {
super(org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.SCHEMA$);
if (isValidValue(fields()[0], other.kgSuperPopCategory)) {
this.kgSuperPopCategory = data().deepCopy(fields()[0].schema(), other.kgSuperPopCategory);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.kgPopCategory)) {
this.kgPopCategory = data().deepCopy(fields()[1].schema(), other.kgPopCategory);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.chiSquare)) {
this.chiSquare = data().deepCopy(fields()[2].schema(), other.chiSquare);
fieldSetFlags()[2] = true;
}
}
/** Gets the value of the 'kgSuperPopCategory' field */
public org.gel.models.participant.avro.KgSuperPopCategory getKgSuperPopCategory() {
return kgSuperPopCategory;
}
/** Sets the value of the 'kgSuperPopCategory' field */
public org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder setKgSuperPopCategory(org.gel.models.participant.avro.KgSuperPopCategory value) {
validate(fields()[0], value);
this.kgSuperPopCategory = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'kgSuperPopCategory' field has been set */
public boolean hasKgSuperPopCategory() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'kgSuperPopCategory' field */
public org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder clearKgSuperPopCategory() {
kgSuperPopCategory = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'kgPopCategory' field */
public org.gel.models.participant.avro.KgPopCategory getKgPopCategory() {
return kgPopCategory;
}
/** Sets the value of the 'kgPopCategory' field */
public org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder setKgPopCategory(org.gel.models.participant.avro.KgPopCategory value) {
validate(fields()[1], value);
this.kgPopCategory = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'kgPopCategory' field has been set */
public boolean hasKgPopCategory() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'kgPopCategory' field */
public org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder clearKgPopCategory() {
kgPopCategory = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'chiSquare' field */
public java.lang.Double getChiSquare() {
return chiSquare;
}
/** Sets the value of the 'chiSquare' field */
public org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder setChiSquare(double value) {
validate(fields()[2], value);
this.chiSquare = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'chiSquare' field has been set */
public boolean hasChiSquare() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'chiSquare' field */
public org.gel.models.participant.avro.ChiSquare1KGenomesPhase3Pop.Builder clearChiSquare() {
fieldSetFlags()[2] = false;
return this;
}
@Override
public ChiSquare1KGenomesPhase3Pop build() {
try {
ChiSquare1KGenomesPhase3Pop record = new ChiSquare1KGenomesPhase3Pop();
record.kgSuperPopCategory = fieldSetFlags()[0] ? this.kgSuperPopCategory : (org.gel.models.participant.avro.KgSuperPopCategory) defaultValue(fields()[0]);
record.kgPopCategory = fieldSetFlags()[1] ? this.kgPopCategory : (org.gel.models.participant.avro.KgPopCategory) defaultValue(fields()[1]);
record.chiSquare = fieldSetFlags()[2] ? this.chiSquare : (java.lang.Double) defaultValue(fields()[2]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}