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.apache.hudi.avro.model;
import org.apache.avro.specific.SpecificData;
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class HoodieClusteringGroup extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
private static final long serialVersionUID = -3697968297757201817L;
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"HoodieClusteringGroup\",\"namespace\":\"org.apache.hudi.avro.model\",\"fields\":[{\"name\":\"slices\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"HoodieSliceInfo\",\"fields\":[{\"name\":\"dataFilePath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"deltaFilePaths\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"default\":null},{\"name\":\"fileId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]},{\"name\":\"partitionPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"bootstrapFilePath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"version\",\"type\":[\"int\",\"null\"],\"default\":1}]}}],\"default\":null},{\"name\":\"metrics\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"double\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"numOutputFileGroups\",\"type\":[\"int\",\"null\"],\"default\":1},{\"name\":\"extraMetadata\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"version\",\"type\":[\"int\",\"null\"],\"default\":1}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
@Deprecated public java.util.List slices;
@Deprecated public java.util.Map metrics;
@Deprecated public java.lang.Integer numOutputFileGroups;
@Deprecated public java.util.Map extraMetadata;
@Deprecated public java.lang.Integer version;
/**
* 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 HoodieClusteringGroup() {}
/**
* All-args constructor.
* @param slices The new value for slices
* @param metrics The new value for metrics
* @param numOutputFileGroups The new value for numOutputFileGroups
* @param extraMetadata The new value for extraMetadata
* @param version The new value for version
*/
public HoodieClusteringGroup(java.util.List slices, java.util.Map metrics, java.lang.Integer numOutputFileGroups, java.util.Map extraMetadata, java.lang.Integer version) {
this.slices = slices;
this.metrics = metrics;
this.numOutputFileGroups = numOutputFileGroups;
this.extraMetadata = extraMetadata;
this.version = version;
}
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 slices;
case 1: return metrics;
case 2: return numOutputFileGroups;
case 3: return extraMetadata;
case 4: return version;
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: slices = (java.util.List)value$; break;
case 1: metrics = (java.util.Map)value$; break;
case 2: numOutputFileGroups = (java.lang.Integer)value$; break;
case 3: extraMetadata = (java.util.Map)value$; break;
case 4: version = (java.lang.Integer)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'slices' field.
* @return The value of the 'slices' field.
*/
public java.util.List getSlices() {
return slices;
}
/**
* Sets the value of the 'slices' field.
* @param value the value to set.
*/
public void setSlices(java.util.List value) {
this.slices = value;
}
/**
* Gets the value of the 'metrics' field.
* @return The value of the 'metrics' field.
*/
public java.util.Map getMetrics() {
return metrics;
}
/**
* Sets the value of the 'metrics' field.
* @param value the value to set.
*/
public void setMetrics(java.util.Map value) {
this.metrics = value;
}
/**
* Gets the value of the 'numOutputFileGroups' field.
* @return The value of the 'numOutputFileGroups' field.
*/
public java.lang.Integer getNumOutputFileGroups() {
return numOutputFileGroups;
}
/**
* Sets the value of the 'numOutputFileGroups' field.
* @param value the value to set.
*/
public void setNumOutputFileGroups(java.lang.Integer value) {
this.numOutputFileGroups = value;
}
/**
* Gets the value of the 'extraMetadata' field.
* @return The value of the 'extraMetadata' field.
*/
public java.util.Map getExtraMetadata() {
return extraMetadata;
}
/**
* Sets the value of the 'extraMetadata' field.
* @param value the value to set.
*/
public void setExtraMetadata(java.util.Map value) {
this.extraMetadata = value;
}
/**
* Gets the value of the 'version' field.
* @return The value of the 'version' field.
*/
public java.lang.Integer getVersion() {
return version;
}
/**
* Sets the value of the 'version' field.
* @param value the value to set.
*/
public void setVersion(java.lang.Integer value) {
this.version = value;
}
/**
* Creates a new HoodieClusteringGroup RecordBuilder.
* @return A new HoodieClusteringGroup RecordBuilder
*/
public static org.apache.hudi.avro.model.HoodieClusteringGroup.Builder newBuilder() {
return new org.apache.hudi.avro.model.HoodieClusteringGroup.Builder();
}
/**
* Creates a new HoodieClusteringGroup RecordBuilder by copying an existing Builder.
* @param other The existing builder to copy.
* @return A new HoodieClusteringGroup RecordBuilder
*/
public static org.apache.hudi.avro.model.HoodieClusteringGroup.Builder newBuilder(org.apache.hudi.avro.model.HoodieClusteringGroup.Builder other) {
return new org.apache.hudi.avro.model.HoodieClusteringGroup.Builder(other);
}
/**
* Creates a new HoodieClusteringGroup RecordBuilder by copying an existing HoodieClusteringGroup instance.
* @param other The existing instance to copy.
* @return A new HoodieClusteringGroup RecordBuilder
*/
public static org.apache.hudi.avro.model.HoodieClusteringGroup.Builder newBuilder(org.apache.hudi.avro.model.HoodieClusteringGroup other) {
return new org.apache.hudi.avro.model.HoodieClusteringGroup.Builder(other);
}
/**
* RecordBuilder for HoodieClusteringGroup instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.util.List slices;
private java.util.Map metrics;
private java.lang.Integer numOutputFileGroups;
private java.util.Map extraMetadata;
private java.lang.Integer version;
/** Creates a new Builder */
private Builder() {
super(SCHEMA$);
}
/**
* Creates a Builder by copying an existing Builder.
* @param other The existing Builder to copy.
*/
private Builder(org.apache.hudi.avro.model.HoodieClusteringGroup.Builder other) {
super(other);
if (isValidValue(fields()[0], other.slices)) {
this.slices = data().deepCopy(fields()[0].schema(), other.slices);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.metrics)) {
this.metrics = data().deepCopy(fields()[1].schema(), other.metrics);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.numOutputFileGroups)) {
this.numOutputFileGroups = data().deepCopy(fields()[2].schema(), other.numOutputFileGroups);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.extraMetadata)) {
this.extraMetadata = data().deepCopy(fields()[3].schema(), other.extraMetadata);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.version)) {
this.version = data().deepCopy(fields()[4].schema(), other.version);
fieldSetFlags()[4] = true;
}
}
/**
* Creates a Builder by copying an existing HoodieClusteringGroup instance
* @param other The existing instance to copy.
*/
private Builder(org.apache.hudi.avro.model.HoodieClusteringGroup other) {
super(SCHEMA$);
if (isValidValue(fields()[0], other.slices)) {
this.slices = data().deepCopy(fields()[0].schema(), other.slices);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.metrics)) {
this.metrics = data().deepCopy(fields()[1].schema(), other.metrics);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.numOutputFileGroups)) {
this.numOutputFileGroups = data().deepCopy(fields()[2].schema(), other.numOutputFileGroups);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.extraMetadata)) {
this.extraMetadata = data().deepCopy(fields()[3].schema(), other.extraMetadata);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.version)) {
this.version = data().deepCopy(fields()[4].schema(), other.version);
fieldSetFlags()[4] = true;
}
}
/**
* Gets the value of the 'slices' field.
* @return The value.
*/
public java.util.List getSlices() {
return slices;
}
/**
* Sets the value of the 'slices' field.
* @param value The value of 'slices'.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieClusteringGroup.Builder setSlices(java.util.List value) {
validate(fields()[0], value);
this.slices = value;
fieldSetFlags()[0] = true;
return this;
}
/**
* Checks whether the 'slices' field has been set.
* @return True if the 'slices' field has been set, false otherwise.
*/
public boolean hasSlices() {
return fieldSetFlags()[0];
}
/**
* Clears the value of the 'slices' field.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieClusteringGroup.Builder clearSlices() {
slices = null;
fieldSetFlags()[0] = false;
return this;
}
/**
* Gets the value of the 'metrics' field.
* @return The value.
*/
public java.util.Map getMetrics() {
return metrics;
}
/**
* Sets the value of the 'metrics' field.
* @param value The value of 'metrics'.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieClusteringGroup.Builder setMetrics(java.util.Map value) {
validate(fields()[1], value);
this.metrics = value;
fieldSetFlags()[1] = true;
return this;
}
/**
* Checks whether the 'metrics' field has been set.
* @return True if the 'metrics' field has been set, false otherwise.
*/
public boolean hasMetrics() {
return fieldSetFlags()[1];
}
/**
* Clears the value of the 'metrics' field.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieClusteringGroup.Builder clearMetrics() {
metrics = null;
fieldSetFlags()[1] = false;
return this;
}
/**
* Gets the value of the 'numOutputFileGroups' field.
* @return The value.
*/
public java.lang.Integer getNumOutputFileGroups() {
return numOutputFileGroups;
}
/**
* Sets the value of the 'numOutputFileGroups' field.
* @param value The value of 'numOutputFileGroups'.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieClusteringGroup.Builder setNumOutputFileGroups(java.lang.Integer value) {
validate(fields()[2], value);
this.numOutputFileGroups = value;
fieldSetFlags()[2] = true;
return this;
}
/**
* Checks whether the 'numOutputFileGroups' field has been set.
* @return True if the 'numOutputFileGroups' field has been set, false otherwise.
*/
public boolean hasNumOutputFileGroups() {
return fieldSetFlags()[2];
}
/**
* Clears the value of the 'numOutputFileGroups' field.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieClusteringGroup.Builder clearNumOutputFileGroups() {
numOutputFileGroups = null;
fieldSetFlags()[2] = false;
return this;
}
/**
* Gets the value of the 'extraMetadata' field.
* @return The value.
*/
public java.util.Map getExtraMetadata() {
return extraMetadata;
}
/**
* Sets the value of the 'extraMetadata' field.
* @param value The value of 'extraMetadata'.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieClusteringGroup.Builder setExtraMetadata(java.util.Map value) {
validate(fields()[3], value);
this.extraMetadata = value;
fieldSetFlags()[3] = true;
return this;
}
/**
* Checks whether the 'extraMetadata' field has been set.
* @return True if the 'extraMetadata' field has been set, false otherwise.
*/
public boolean hasExtraMetadata() {
return fieldSetFlags()[3];
}
/**
* Clears the value of the 'extraMetadata' field.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieClusteringGroup.Builder clearExtraMetadata() {
extraMetadata = null;
fieldSetFlags()[3] = false;
return this;
}
/**
* Gets the value of the 'version' field.
* @return The value.
*/
public java.lang.Integer getVersion() {
return version;
}
/**
* Sets the value of the 'version' field.
* @param value The value of 'version'.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieClusteringGroup.Builder setVersion(java.lang.Integer value) {
validate(fields()[4], value);
this.version = value;
fieldSetFlags()[4] = true;
return this;
}
/**
* Checks whether the 'version' field has been set.
* @return True if the 'version' field has been set, false otherwise.
*/
public boolean hasVersion() {
return fieldSetFlags()[4];
}
/**
* Clears the value of the 'version' field.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieClusteringGroup.Builder clearVersion() {
version = null;
fieldSetFlags()[4] = false;
return this;
}
@Override
public HoodieClusteringGroup build() {
try {
HoodieClusteringGroup record = new HoodieClusteringGroup();
record.slices = fieldSetFlags()[0] ? this.slices : (java.util.List) defaultValue(fields()[0]);
record.metrics = fieldSetFlags()[1] ? this.metrics : (java.util.Map) defaultValue(fields()[1]);
record.numOutputFileGroups = fieldSetFlags()[2] ? this.numOutputFileGroups : (java.lang.Integer) defaultValue(fields()[2]);
record.extraMetadata = fieldSetFlags()[3] ? this.extraMetadata : (java.util.Map) defaultValue(fields()[3]);
record.version = fieldSetFlags()[4] ? this.version : (java.lang.Integer) defaultValue(fields()[4]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
private static final org.apache.avro.io.DatumWriter
WRITER$ = new org.apache.avro.specific.SpecificDatumWriter(SCHEMA$);
@Override public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException {
WRITER$.write(this, SpecificData.getEncoder(out));
}
private static final org.apache.avro.io.DatumReader
READER$ = new org.apache.avro.specific.SpecificDatumReader(SCHEMA$);
@Override public void readExternal(java.io.ObjectInput in)
throws java.io.IOException {
READER$.read(this, SpecificData.getDecoder(in));
}
}