org.apache.hudi.avro.model.HoodieArchivedMetaEntry Maven / Gradle / Ivy
The newest version!
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.apache.hudi.avro.model;
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class HoodieArchivedMetaEntry 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\":\"HoodieArchivedMetaEntry\",\"namespace\":\"org.apache.hudi.avro.model\",\"fields\":[{\"name\":\"hoodieCommitMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"HoodieCommitMetadata\",\"fields\":[{\"name\":\"partitionToWriteStats\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"HoodieWriteStat\",\"fields\":[{\"name\":\"fileId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"path\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"prevCommit\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"numWrites\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"numDeletes\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"numUpdateWrites\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"totalWriteBytes\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"totalWriteErrors\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"partitionPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"totalLogRecords\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"totalLogFiles\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"totalUpdatedRecordsCompacted\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"numInserts\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"totalLogBlocks\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"totalCorruptLogBlock\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"totalRollbackBlocks\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"fileSizeInBytes\",\"type\":[\"null\",\"long\"],\"default\":null}]}},\"avro.java.string\":\"String\"}]},{\"name\":\"extraMetadata\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}]}]}],\"default\":\"null\"},{\"name\":\"hoodieCleanMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"HoodieCleanMetadata\",\"fields\":[{\"name\":\"startCleanTime\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timeTakenInMillis\",\"type\":\"long\"},{\"name\":\"totalFilesDeleted\",\"type\":\"int\"},{\"name\":\"earliestCommitToRetain\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"partitionMetadata\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"HoodieCleanPartitionMetadata\",\"fields\":[{\"name\":\"partitionPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"policy\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"deletePathPatterns\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"successDeleteFiles\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"failedDeleteFiles\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}}]},\"avro.java.string\":\"String\"}}]}],\"default\":\"null\"},{\"name\":\"hoodieCompactionMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"HoodieCompactionMetadata\",\"fields\":[{\"name\":\"partitionToCompactionWriteStats\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"HoodieCompactionWriteStat\",\"fields\":[{\"name\":\"partitionPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]},{\"name\":\"totalLogRecords\",\"type\":[\"null\",\"long\"]},{\"name\":\"totalLogFiles\",\"type\":[\"null\",\"long\"]},{\"name\":\"totalUpdatedRecordsCompacted\",\"type\":[\"null\",\"long\"]},{\"name\":\"hoodieWriteStat\",\"type\":[\"null\",\"HoodieWriteStat\"]}]}},\"avro.java.string\":\"String\"}]}]}],\"default\":\"null\"},{\"name\":\"hoodieRollbackMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"HoodieRollbackMetadata\",\"fields\":[{\"name\":\"startRollbackTime\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timeTakenInMillis\",\"type\":\"long\"},{\"name\":\"totalFilesDeleted\",\"type\":\"int\"},{\"name\":\"commitsRollback\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"partitionMetadata\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"HoodieRollbackPartitionMetadata\",\"fields\":[{\"name\":\"partitionPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"successDeleteFiles\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"failedDeleteFiles\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}}]},\"avro.java.string\":\"String\"}}]}],\"default\":\"null\"},{\"name\":\"hoodieSavePointMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"HoodieSavepointMetadata\",\"fields\":[{\"name\":\"savepointedBy\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"savepointedAt\",\"type\":\"long\"},{\"name\":\"comments\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"partitionMetadata\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"HoodieSavepointPartitionMetadata\",\"fields\":[{\"name\":\"partitionPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"savepointDataFile\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}}]},\"avro.java.string\":\"String\"}}]}],\"default\":\"null\"},{\"name\":\"commitTime\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]},{\"name\":\"actionType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
@Deprecated public org.apache.hudi.avro.model.HoodieCommitMetadata hoodieCommitMetadata;
@Deprecated public org.apache.hudi.avro.model.HoodieCleanMetadata hoodieCleanMetadata;
@Deprecated public org.apache.hudi.avro.model.HoodieCompactionMetadata hoodieCompactionMetadata;
@Deprecated public org.apache.hudi.avro.model.HoodieRollbackMetadata hoodieRollbackMetadata;
@Deprecated public org.apache.hudi.avro.model.HoodieSavepointMetadata hoodieSavePointMetadata;
@Deprecated public java.lang.String commitTime;
@Deprecated public java.lang.String actionType;
/**
* 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 HoodieArchivedMetaEntry() {}
/**
* All-args constructor.
*/
public HoodieArchivedMetaEntry(org.apache.hudi.avro.model.HoodieCommitMetadata hoodieCommitMetadata, org.apache.hudi.avro.model.HoodieCleanMetadata hoodieCleanMetadata, org.apache.hudi.avro.model.HoodieCompactionMetadata hoodieCompactionMetadata, org.apache.hudi.avro.model.HoodieRollbackMetadata hoodieRollbackMetadata, org.apache.hudi.avro.model.HoodieSavepointMetadata hoodieSavePointMetadata, java.lang.String commitTime, java.lang.String actionType) {
this.hoodieCommitMetadata = hoodieCommitMetadata;
this.hoodieCleanMetadata = hoodieCleanMetadata;
this.hoodieCompactionMetadata = hoodieCompactionMetadata;
this.hoodieRollbackMetadata = hoodieRollbackMetadata;
this.hoodieSavePointMetadata = hoodieSavePointMetadata;
this.commitTime = commitTime;
this.actionType = actionType;
}
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 hoodieCommitMetadata;
case 1: return hoodieCleanMetadata;
case 2: return hoodieCompactionMetadata;
case 3: return hoodieRollbackMetadata;
case 4: return hoodieSavePointMetadata;
case 5: return commitTime;
case 6: return actionType;
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: hoodieCommitMetadata = (org.apache.hudi.avro.model.HoodieCommitMetadata)value$; break;
case 1: hoodieCleanMetadata = (org.apache.hudi.avro.model.HoodieCleanMetadata)value$; break;
case 2: hoodieCompactionMetadata = (org.apache.hudi.avro.model.HoodieCompactionMetadata)value$; break;
case 3: hoodieRollbackMetadata = (org.apache.hudi.avro.model.HoodieRollbackMetadata)value$; break;
case 4: hoodieSavePointMetadata = (org.apache.hudi.avro.model.HoodieSavepointMetadata)value$; break;
case 5: commitTime = (java.lang.String)value$; break;
case 6: actionType = (java.lang.String)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'hoodieCommitMetadata' field.
*/
public org.apache.hudi.avro.model.HoodieCommitMetadata getHoodieCommitMetadata() {
return hoodieCommitMetadata;
}
/**
* Sets the value of the 'hoodieCommitMetadata' field.
* @param value the value to set.
*/
public void setHoodieCommitMetadata(org.apache.hudi.avro.model.HoodieCommitMetadata value) {
this.hoodieCommitMetadata = value;
}
/**
* Gets the value of the 'hoodieCleanMetadata' field.
*/
public org.apache.hudi.avro.model.HoodieCleanMetadata getHoodieCleanMetadata() {
return hoodieCleanMetadata;
}
/**
* Sets the value of the 'hoodieCleanMetadata' field.
* @param value the value to set.
*/
public void setHoodieCleanMetadata(org.apache.hudi.avro.model.HoodieCleanMetadata value) {
this.hoodieCleanMetadata = value;
}
/**
* Gets the value of the 'hoodieCompactionMetadata' field.
*/
public org.apache.hudi.avro.model.HoodieCompactionMetadata getHoodieCompactionMetadata() {
return hoodieCompactionMetadata;
}
/**
* Sets the value of the 'hoodieCompactionMetadata' field.
* @param value the value to set.
*/
public void setHoodieCompactionMetadata(org.apache.hudi.avro.model.HoodieCompactionMetadata value) {
this.hoodieCompactionMetadata = value;
}
/**
* Gets the value of the 'hoodieRollbackMetadata' field.
*/
public org.apache.hudi.avro.model.HoodieRollbackMetadata getHoodieRollbackMetadata() {
return hoodieRollbackMetadata;
}
/**
* Sets the value of the 'hoodieRollbackMetadata' field.
* @param value the value to set.
*/
public void setHoodieRollbackMetadata(org.apache.hudi.avro.model.HoodieRollbackMetadata value) {
this.hoodieRollbackMetadata = value;
}
/**
* Gets the value of the 'hoodieSavePointMetadata' field.
*/
public org.apache.hudi.avro.model.HoodieSavepointMetadata getHoodieSavePointMetadata() {
return hoodieSavePointMetadata;
}
/**
* Sets the value of the 'hoodieSavePointMetadata' field.
* @param value the value to set.
*/
public void setHoodieSavePointMetadata(org.apache.hudi.avro.model.HoodieSavepointMetadata value) {
this.hoodieSavePointMetadata = value;
}
/**
* Gets the value of the 'commitTime' field.
*/
public java.lang.String getCommitTime() {
return commitTime;
}
/**
* Sets the value of the 'commitTime' field.
* @param value the value to set.
*/
public void setCommitTime(java.lang.String value) {
this.commitTime = value;
}
/**
* Gets the value of the 'actionType' field.
*/
public java.lang.String getActionType() {
return actionType;
}
/**
* Sets the value of the 'actionType' field.
* @param value the value to set.
*/
public void setActionType(java.lang.String value) {
this.actionType = value;
}
/** Creates a new HoodieArchivedMetaEntry RecordBuilder */
public static org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder newBuilder() {
return new org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder();
}
/** Creates a new HoodieArchivedMetaEntry RecordBuilder by copying an existing Builder */
public static org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder newBuilder(org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder other) {
return new org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder(other);
}
/** Creates a new HoodieArchivedMetaEntry RecordBuilder by copying an existing HoodieArchivedMetaEntry instance */
public static org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder newBuilder(org.apache.hudi.avro.model.HoodieArchivedMetaEntry other) {
return new org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder(other);
}
/**
* RecordBuilder for HoodieArchivedMetaEntry instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private org.apache.hudi.avro.model.HoodieCommitMetadata hoodieCommitMetadata;
private org.apache.hudi.avro.model.HoodieCleanMetadata hoodieCleanMetadata;
private org.apache.hudi.avro.model.HoodieCompactionMetadata hoodieCompactionMetadata;
private org.apache.hudi.avro.model.HoodieRollbackMetadata hoodieRollbackMetadata;
private org.apache.hudi.avro.model.HoodieSavepointMetadata hoodieSavePointMetadata;
private java.lang.String commitTime;
private java.lang.String actionType;
/** Creates a new Builder */
private Builder() {
super(org.apache.hudi.avro.model.HoodieArchivedMetaEntry.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder other) {
super(other);
if (isValidValue(fields()[0], other.hoodieCommitMetadata)) {
this.hoodieCommitMetadata = data().deepCopy(fields()[0].schema(), other.hoodieCommitMetadata);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.hoodieCleanMetadata)) {
this.hoodieCleanMetadata = data().deepCopy(fields()[1].schema(), other.hoodieCleanMetadata);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.hoodieCompactionMetadata)) {
this.hoodieCompactionMetadata = data().deepCopy(fields()[2].schema(), other.hoodieCompactionMetadata);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.hoodieRollbackMetadata)) {
this.hoodieRollbackMetadata = data().deepCopy(fields()[3].schema(), other.hoodieRollbackMetadata);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.hoodieSavePointMetadata)) {
this.hoodieSavePointMetadata = data().deepCopy(fields()[4].schema(), other.hoodieSavePointMetadata);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.commitTime)) {
this.commitTime = data().deepCopy(fields()[5].schema(), other.commitTime);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.actionType)) {
this.actionType = data().deepCopy(fields()[6].schema(), other.actionType);
fieldSetFlags()[6] = true;
}
}
/** Creates a Builder by copying an existing HoodieArchivedMetaEntry instance */
private Builder(org.apache.hudi.avro.model.HoodieArchivedMetaEntry other) {
super(org.apache.hudi.avro.model.HoodieArchivedMetaEntry.SCHEMA$);
if (isValidValue(fields()[0], other.hoodieCommitMetadata)) {
this.hoodieCommitMetadata = data().deepCopy(fields()[0].schema(), other.hoodieCommitMetadata);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.hoodieCleanMetadata)) {
this.hoodieCleanMetadata = data().deepCopy(fields()[1].schema(), other.hoodieCleanMetadata);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.hoodieCompactionMetadata)) {
this.hoodieCompactionMetadata = data().deepCopy(fields()[2].schema(), other.hoodieCompactionMetadata);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.hoodieRollbackMetadata)) {
this.hoodieRollbackMetadata = data().deepCopy(fields()[3].schema(), other.hoodieRollbackMetadata);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.hoodieSavePointMetadata)) {
this.hoodieSavePointMetadata = data().deepCopy(fields()[4].schema(), other.hoodieSavePointMetadata);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.commitTime)) {
this.commitTime = data().deepCopy(fields()[5].schema(), other.commitTime);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.actionType)) {
this.actionType = data().deepCopy(fields()[6].schema(), other.actionType);
fieldSetFlags()[6] = true;
}
}
/** Gets the value of the 'hoodieCommitMetadata' field */
public org.apache.hudi.avro.model.HoodieCommitMetadata getHoodieCommitMetadata() {
return hoodieCommitMetadata;
}
/** Sets the value of the 'hoodieCommitMetadata' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder setHoodieCommitMetadata(org.apache.hudi.avro.model.HoodieCommitMetadata value) {
validate(fields()[0], value);
this.hoodieCommitMetadata = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'hoodieCommitMetadata' field has been set */
public boolean hasHoodieCommitMetadata() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'hoodieCommitMetadata' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder clearHoodieCommitMetadata() {
hoodieCommitMetadata = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'hoodieCleanMetadata' field */
public org.apache.hudi.avro.model.HoodieCleanMetadata getHoodieCleanMetadata() {
return hoodieCleanMetadata;
}
/** Sets the value of the 'hoodieCleanMetadata' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder setHoodieCleanMetadata(org.apache.hudi.avro.model.HoodieCleanMetadata value) {
validate(fields()[1], value);
this.hoodieCleanMetadata = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'hoodieCleanMetadata' field has been set */
public boolean hasHoodieCleanMetadata() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'hoodieCleanMetadata' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder clearHoodieCleanMetadata() {
hoodieCleanMetadata = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'hoodieCompactionMetadata' field */
public org.apache.hudi.avro.model.HoodieCompactionMetadata getHoodieCompactionMetadata() {
return hoodieCompactionMetadata;
}
/** Sets the value of the 'hoodieCompactionMetadata' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder setHoodieCompactionMetadata(org.apache.hudi.avro.model.HoodieCompactionMetadata value) {
validate(fields()[2], value);
this.hoodieCompactionMetadata = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'hoodieCompactionMetadata' field has been set */
public boolean hasHoodieCompactionMetadata() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'hoodieCompactionMetadata' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder clearHoodieCompactionMetadata() {
hoodieCompactionMetadata = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'hoodieRollbackMetadata' field */
public org.apache.hudi.avro.model.HoodieRollbackMetadata getHoodieRollbackMetadata() {
return hoodieRollbackMetadata;
}
/** Sets the value of the 'hoodieRollbackMetadata' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder setHoodieRollbackMetadata(org.apache.hudi.avro.model.HoodieRollbackMetadata value) {
validate(fields()[3], value);
this.hoodieRollbackMetadata = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'hoodieRollbackMetadata' field has been set */
public boolean hasHoodieRollbackMetadata() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'hoodieRollbackMetadata' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder clearHoodieRollbackMetadata() {
hoodieRollbackMetadata = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'hoodieSavePointMetadata' field */
public org.apache.hudi.avro.model.HoodieSavepointMetadata getHoodieSavePointMetadata() {
return hoodieSavePointMetadata;
}
/** Sets the value of the 'hoodieSavePointMetadata' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder setHoodieSavePointMetadata(org.apache.hudi.avro.model.HoodieSavepointMetadata value) {
validate(fields()[4], value);
this.hoodieSavePointMetadata = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'hoodieSavePointMetadata' field has been set */
public boolean hasHoodieSavePointMetadata() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'hoodieSavePointMetadata' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder clearHoodieSavePointMetadata() {
hoodieSavePointMetadata = null;
fieldSetFlags()[4] = false;
return this;
}
/** Gets the value of the 'commitTime' field */
public java.lang.String getCommitTime() {
return commitTime;
}
/** Sets the value of the 'commitTime' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder setCommitTime(java.lang.String value) {
validate(fields()[5], value);
this.commitTime = value;
fieldSetFlags()[5] = true;
return this;
}
/** Checks whether the 'commitTime' field has been set */
public boolean hasCommitTime() {
return fieldSetFlags()[5];
}
/** Clears the value of the 'commitTime' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder clearCommitTime() {
commitTime = null;
fieldSetFlags()[5] = false;
return this;
}
/** Gets the value of the 'actionType' field */
public java.lang.String getActionType() {
return actionType;
}
/** Sets the value of the 'actionType' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder setActionType(java.lang.String value) {
validate(fields()[6], value);
this.actionType = value;
fieldSetFlags()[6] = true;
return this;
}
/** Checks whether the 'actionType' field has been set */
public boolean hasActionType() {
return fieldSetFlags()[6];
}
/** Clears the value of the 'actionType' field */
public org.apache.hudi.avro.model.HoodieArchivedMetaEntry.Builder clearActionType() {
actionType = null;
fieldSetFlags()[6] = false;
return this;
}
@Override
public HoodieArchivedMetaEntry build() {
try {
HoodieArchivedMetaEntry record = new HoodieArchivedMetaEntry();
record.hoodieCommitMetadata = fieldSetFlags()[0] ? this.hoodieCommitMetadata : (org.apache.hudi.avro.model.HoodieCommitMetadata) defaultValue(fields()[0]);
record.hoodieCleanMetadata = fieldSetFlags()[1] ? this.hoodieCleanMetadata : (org.apache.hudi.avro.model.HoodieCleanMetadata) defaultValue(fields()[1]);
record.hoodieCompactionMetadata = fieldSetFlags()[2] ? this.hoodieCompactionMetadata : (org.apache.hudi.avro.model.HoodieCompactionMetadata) defaultValue(fields()[2]);
record.hoodieRollbackMetadata = fieldSetFlags()[3] ? this.hoodieRollbackMetadata : (org.apache.hudi.avro.model.HoodieRollbackMetadata) defaultValue(fields()[3]);
record.hoodieSavePointMetadata = fieldSetFlags()[4] ? this.hoodieSavePointMetadata : (org.apache.hudi.avro.model.HoodieSavepointMetadata) defaultValue(fields()[4]);
record.commitTime = fieldSetFlags()[5] ? this.commitTime : (java.lang.String) defaultValue(fields()[5]);
record.actionType = fieldSetFlags()[6] ? this.actionType : (java.lang.String) defaultValue(fields()[6]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy