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;
import org.apache.avro.message.BinaryMessageEncoder;
import org.apache.avro.message.BinaryMessageDecoder;
import org.apache.avro.message.SchemaStore;
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class HoodieCleanerPlan extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
private static final long serialVersionUID = 5634362543632831733L;
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"HoodieCleanerPlan\",\"namespace\":\"org.apache.hudi.avro.model\",\"fields\":[{\"name\":\"earliestInstantToRetain\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"HoodieActionInstant\",\"fields\":[{\"name\":\"timestamp\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"action\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"state\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}],\"default\":null},{\"name\":\"lastCompletedCommitTimestamp\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"default\":\"\"},{\"name\":\"policy\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"filesToBeDeletedPerPartition\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"version\",\"type\":[\"int\",\"null\"],\"default\":1},{\"name\":\"filePathsToBeDeletedPerPartition\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"HoodieCleanFileInfo\",\"fields\":[{\"name\":\"filePath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"isBootstrapBaseFile\",\"type\":[\"null\",\"boolean\"],\"default\":null}]}},\"avro.java.string\":\"String\"}],\"doc\":\"This field replaces the field filesToBeDeletedPerPartition\",\"default\":null},{\"name\":\"partitionsToBeDeleted\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"partitions to be deleted\",\"default\":null}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private static SpecificData MODEL$ = new SpecificData();
private static final BinaryMessageEncoder ENCODER =
new BinaryMessageEncoder(MODEL$, SCHEMA$);
private static final BinaryMessageDecoder DECODER =
new BinaryMessageDecoder(MODEL$, SCHEMA$);
/**
* Return the BinaryMessageDecoder instance used by this class.
*/
public static BinaryMessageDecoder getDecoder() {
return DECODER;
}
/**
* Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
* @param resolver a {@link SchemaStore} used to find schemas by fingerprint
*/
public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
}
/** Serializes this HoodieCleanerPlan to a ByteBuffer. */
public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
return ENCODER.encode(this);
}
/** Deserializes a HoodieCleanerPlan from a ByteBuffer. */
public static HoodieCleanerPlan fromByteBuffer(
java.nio.ByteBuffer b) throws java.io.IOException {
return DECODER.decode(b);
}
@Deprecated public org.apache.hudi.avro.model.HoodieActionInstant earliestInstantToRetain;
@Deprecated public java.lang.String lastCompletedCommitTimestamp;
@Deprecated public java.lang.String policy;
@Deprecated public java.util.Map> filesToBeDeletedPerPartition;
@Deprecated public java.lang.Integer version;
/** This field replaces the field filesToBeDeletedPerPartition */
@Deprecated public java.util.Map> filePathsToBeDeletedPerPartition;
/** partitions to be deleted */
@Deprecated public java.util.List partitionsToBeDeleted;
/**
* 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 HoodieCleanerPlan() {}
/**
* All-args constructor.
* @param earliestInstantToRetain The new value for earliestInstantToRetain
* @param lastCompletedCommitTimestamp The new value for lastCompletedCommitTimestamp
* @param policy The new value for policy
* @param filesToBeDeletedPerPartition The new value for filesToBeDeletedPerPartition
* @param version The new value for version
* @param filePathsToBeDeletedPerPartition This field replaces the field filesToBeDeletedPerPartition
* @param partitionsToBeDeleted partitions to be deleted
*/
public HoodieCleanerPlan(org.apache.hudi.avro.model.HoodieActionInstant earliestInstantToRetain, java.lang.String lastCompletedCommitTimestamp, java.lang.String policy, java.util.Map> filesToBeDeletedPerPartition, java.lang.Integer version, java.util.Map> filePathsToBeDeletedPerPartition, java.util.List partitionsToBeDeleted) {
this.earliestInstantToRetain = earliestInstantToRetain;
this.lastCompletedCommitTimestamp = lastCompletedCommitTimestamp;
this.policy = policy;
this.filesToBeDeletedPerPartition = filesToBeDeletedPerPartition;
this.version = version;
this.filePathsToBeDeletedPerPartition = filePathsToBeDeletedPerPartition;
this.partitionsToBeDeleted = partitionsToBeDeleted;
}
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 earliestInstantToRetain;
case 1: return lastCompletedCommitTimestamp;
case 2: return policy;
case 3: return filesToBeDeletedPerPartition;
case 4: return version;
case 5: return filePathsToBeDeletedPerPartition;
case 6: return partitionsToBeDeleted;
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: earliestInstantToRetain = (org.apache.hudi.avro.model.HoodieActionInstant)value$; break;
case 1: lastCompletedCommitTimestamp = (java.lang.String)value$; break;
case 2: policy = (java.lang.String)value$; break;
case 3: filesToBeDeletedPerPartition = (java.util.Map>)value$; break;
case 4: version = (java.lang.Integer)value$; break;
case 5: filePathsToBeDeletedPerPartition = (java.util.Map>)value$; break;
case 6: partitionsToBeDeleted = (java.util.List)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'earliestInstantToRetain' field.
* @return The value of the 'earliestInstantToRetain' field.
*/
public org.apache.hudi.avro.model.HoodieActionInstant getEarliestInstantToRetain() {
return earliestInstantToRetain;
}
/**
* Sets the value of the 'earliestInstantToRetain' field.
* @param value the value to set.
*/
public void setEarliestInstantToRetain(org.apache.hudi.avro.model.HoodieActionInstant value) {
this.earliestInstantToRetain = value;
}
/**
* Gets the value of the 'lastCompletedCommitTimestamp' field.
* @return The value of the 'lastCompletedCommitTimestamp' field.
*/
public java.lang.String getLastCompletedCommitTimestamp() {
return lastCompletedCommitTimestamp;
}
/**
* Sets the value of the 'lastCompletedCommitTimestamp' field.
* @param value the value to set.
*/
public void setLastCompletedCommitTimestamp(java.lang.String value) {
this.lastCompletedCommitTimestamp = value;
}
/**
* Gets the value of the 'policy' field.
* @return The value of the 'policy' field.
*/
public java.lang.String getPolicy() {
return policy;
}
/**
* Sets the value of the 'policy' field.
* @param value the value to set.
*/
public void setPolicy(java.lang.String value) {
this.policy = value;
}
/**
* Gets the value of the 'filesToBeDeletedPerPartition' field.
* @return The value of the 'filesToBeDeletedPerPartition' field.
*/
public java.util.Map> getFilesToBeDeletedPerPartition() {
return filesToBeDeletedPerPartition;
}
/**
* Sets the value of the 'filesToBeDeletedPerPartition' field.
* @param value the value to set.
*/
public void setFilesToBeDeletedPerPartition(java.util.Map> value) {
this.filesToBeDeletedPerPartition = 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;
}
/**
* Gets the value of the 'filePathsToBeDeletedPerPartition' field.
* @return This field replaces the field filesToBeDeletedPerPartition
*/
public java.util.Map> getFilePathsToBeDeletedPerPartition() {
return filePathsToBeDeletedPerPartition;
}
/**
* Sets the value of the 'filePathsToBeDeletedPerPartition' field.
* This field replaces the field filesToBeDeletedPerPartition
* @param value the value to set.
*/
public void setFilePathsToBeDeletedPerPartition(java.util.Map> value) {
this.filePathsToBeDeletedPerPartition = value;
}
/**
* Gets the value of the 'partitionsToBeDeleted' field.
* @return partitions to be deleted
*/
public java.util.List getPartitionsToBeDeleted() {
return partitionsToBeDeleted;
}
/**
* Sets the value of the 'partitionsToBeDeleted' field.
* partitions to be deleted
* @param value the value to set.
*/
public void setPartitionsToBeDeleted(java.util.List value) {
this.partitionsToBeDeleted = value;
}
/**
* Creates a new HoodieCleanerPlan RecordBuilder.
* @return A new HoodieCleanerPlan RecordBuilder
*/
public static org.apache.hudi.avro.model.HoodieCleanerPlan.Builder newBuilder() {
return new org.apache.hudi.avro.model.HoodieCleanerPlan.Builder();
}
/**
* Creates a new HoodieCleanerPlan RecordBuilder by copying an existing Builder.
* @param other The existing builder to copy.
* @return A new HoodieCleanerPlan RecordBuilder
*/
public static org.apache.hudi.avro.model.HoodieCleanerPlan.Builder newBuilder(org.apache.hudi.avro.model.HoodieCleanerPlan.Builder other) {
return new org.apache.hudi.avro.model.HoodieCleanerPlan.Builder(other);
}
/**
* Creates a new HoodieCleanerPlan RecordBuilder by copying an existing HoodieCleanerPlan instance.
* @param other The existing instance to copy.
* @return A new HoodieCleanerPlan RecordBuilder
*/
public static org.apache.hudi.avro.model.HoodieCleanerPlan.Builder newBuilder(org.apache.hudi.avro.model.HoodieCleanerPlan other) {
return new org.apache.hudi.avro.model.HoodieCleanerPlan.Builder(other);
}
/**
* RecordBuilder for HoodieCleanerPlan instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private org.apache.hudi.avro.model.HoodieActionInstant earliestInstantToRetain;
private org.apache.hudi.avro.model.HoodieActionInstant.Builder earliestInstantToRetainBuilder;
private java.lang.String lastCompletedCommitTimestamp;
private java.lang.String policy;
private java.util.Map> filesToBeDeletedPerPartition;
private java.lang.Integer version;
/** This field replaces the field filesToBeDeletedPerPartition */
private java.util.Map> filePathsToBeDeletedPerPartition;
/** partitions to be deleted */
private java.util.List partitionsToBeDeleted;
/** 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.HoodieCleanerPlan.Builder other) {
super(other);
if (isValidValue(fields()[0], other.earliestInstantToRetain)) {
this.earliestInstantToRetain = data().deepCopy(fields()[0].schema(), other.earliestInstantToRetain);
fieldSetFlags()[0] = true;
}
if (other.hasEarliestInstantToRetainBuilder()) {
this.earliestInstantToRetainBuilder = org.apache.hudi.avro.model.HoodieActionInstant.newBuilder(other.getEarliestInstantToRetainBuilder());
}
if (isValidValue(fields()[1], other.lastCompletedCommitTimestamp)) {
this.lastCompletedCommitTimestamp = data().deepCopy(fields()[1].schema(), other.lastCompletedCommitTimestamp);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.policy)) {
this.policy = data().deepCopy(fields()[2].schema(), other.policy);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.filesToBeDeletedPerPartition)) {
this.filesToBeDeletedPerPartition = data().deepCopy(fields()[3].schema(), other.filesToBeDeletedPerPartition);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.version)) {
this.version = data().deepCopy(fields()[4].schema(), other.version);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.filePathsToBeDeletedPerPartition)) {
this.filePathsToBeDeletedPerPartition = data().deepCopy(fields()[5].schema(), other.filePathsToBeDeletedPerPartition);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.partitionsToBeDeleted)) {
this.partitionsToBeDeleted = data().deepCopy(fields()[6].schema(), other.partitionsToBeDeleted);
fieldSetFlags()[6] = true;
}
}
/**
* Creates a Builder by copying an existing HoodieCleanerPlan instance
* @param other The existing instance to copy.
*/
private Builder(org.apache.hudi.avro.model.HoodieCleanerPlan other) {
super(SCHEMA$);
if (isValidValue(fields()[0], other.earliestInstantToRetain)) {
this.earliestInstantToRetain = data().deepCopy(fields()[0].schema(), other.earliestInstantToRetain);
fieldSetFlags()[0] = true;
}
this.earliestInstantToRetainBuilder = null;
if (isValidValue(fields()[1], other.lastCompletedCommitTimestamp)) {
this.lastCompletedCommitTimestamp = data().deepCopy(fields()[1].schema(), other.lastCompletedCommitTimestamp);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.policy)) {
this.policy = data().deepCopy(fields()[2].schema(), other.policy);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.filesToBeDeletedPerPartition)) {
this.filesToBeDeletedPerPartition = data().deepCopy(fields()[3].schema(), other.filesToBeDeletedPerPartition);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.version)) {
this.version = data().deepCopy(fields()[4].schema(), other.version);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.filePathsToBeDeletedPerPartition)) {
this.filePathsToBeDeletedPerPartition = data().deepCopy(fields()[5].schema(), other.filePathsToBeDeletedPerPartition);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.partitionsToBeDeleted)) {
this.partitionsToBeDeleted = data().deepCopy(fields()[6].schema(), other.partitionsToBeDeleted);
fieldSetFlags()[6] = true;
}
}
/**
* Gets the value of the 'earliestInstantToRetain' field.
* @return The value.
*/
public org.apache.hudi.avro.model.HoodieActionInstant getEarliestInstantToRetain() {
return earliestInstantToRetain;
}
/**
* Sets the value of the 'earliestInstantToRetain' field.
* @param value The value of 'earliestInstantToRetain'.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder setEarliestInstantToRetain(org.apache.hudi.avro.model.HoodieActionInstant value) {
validate(fields()[0], value);
this.earliestInstantToRetainBuilder = null;
this.earliestInstantToRetain = value;
fieldSetFlags()[0] = true;
return this;
}
/**
* Checks whether the 'earliestInstantToRetain' field has been set.
* @return True if the 'earliestInstantToRetain' field has been set, false otherwise.
*/
public boolean hasEarliestInstantToRetain() {
return fieldSetFlags()[0];
}
/**
* Gets the Builder instance for the 'earliestInstantToRetain' field and creates one if it doesn't exist yet.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieActionInstant.Builder getEarliestInstantToRetainBuilder() {
if (earliestInstantToRetainBuilder == null) {
if (hasEarliestInstantToRetain()) {
setEarliestInstantToRetainBuilder(org.apache.hudi.avro.model.HoodieActionInstant.newBuilder(earliestInstantToRetain));
} else {
setEarliestInstantToRetainBuilder(org.apache.hudi.avro.model.HoodieActionInstant.newBuilder());
}
}
return earliestInstantToRetainBuilder;
}
/**
* Sets the Builder instance for the 'earliestInstantToRetain' field
* @param value The builder instance that must be set.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder setEarliestInstantToRetainBuilder(org.apache.hudi.avro.model.HoodieActionInstant.Builder value) {
clearEarliestInstantToRetain();
earliestInstantToRetainBuilder = value;
return this;
}
/**
* Checks whether the 'earliestInstantToRetain' field has an active Builder instance
* @return True if the 'earliestInstantToRetain' field has an active Builder instance
*/
public boolean hasEarliestInstantToRetainBuilder() {
return earliestInstantToRetainBuilder != null;
}
/**
* Clears the value of the 'earliestInstantToRetain' field.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder clearEarliestInstantToRetain() {
earliestInstantToRetain = null;
earliestInstantToRetainBuilder = null;
fieldSetFlags()[0] = false;
return this;
}
/**
* Gets the value of the 'lastCompletedCommitTimestamp' field.
* @return The value.
*/
public java.lang.String getLastCompletedCommitTimestamp() {
return lastCompletedCommitTimestamp;
}
/**
* Sets the value of the 'lastCompletedCommitTimestamp' field.
* @param value The value of 'lastCompletedCommitTimestamp'.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder setLastCompletedCommitTimestamp(java.lang.String value) {
validate(fields()[1], value);
this.lastCompletedCommitTimestamp = value;
fieldSetFlags()[1] = true;
return this;
}
/**
* Checks whether the 'lastCompletedCommitTimestamp' field has been set.
* @return True if the 'lastCompletedCommitTimestamp' field has been set, false otherwise.
*/
public boolean hasLastCompletedCommitTimestamp() {
return fieldSetFlags()[1];
}
/**
* Clears the value of the 'lastCompletedCommitTimestamp' field.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder clearLastCompletedCommitTimestamp() {
lastCompletedCommitTimestamp = null;
fieldSetFlags()[1] = false;
return this;
}
/**
* Gets the value of the 'policy' field.
* @return The value.
*/
public java.lang.String getPolicy() {
return policy;
}
/**
* Sets the value of the 'policy' field.
* @param value The value of 'policy'.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder setPolicy(java.lang.String value) {
validate(fields()[2], value);
this.policy = value;
fieldSetFlags()[2] = true;
return this;
}
/**
* Checks whether the 'policy' field has been set.
* @return True if the 'policy' field has been set, false otherwise.
*/
public boolean hasPolicy() {
return fieldSetFlags()[2];
}
/**
* Clears the value of the 'policy' field.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder clearPolicy() {
policy = null;
fieldSetFlags()[2] = false;
return this;
}
/**
* Gets the value of the 'filesToBeDeletedPerPartition' field.
* @return The value.
*/
public java.util.Map> getFilesToBeDeletedPerPartition() {
return filesToBeDeletedPerPartition;
}
/**
* Sets the value of the 'filesToBeDeletedPerPartition' field.
* @param value The value of 'filesToBeDeletedPerPartition'.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder setFilesToBeDeletedPerPartition(java.util.Map> value) {
validate(fields()[3], value);
this.filesToBeDeletedPerPartition = value;
fieldSetFlags()[3] = true;
return this;
}
/**
* Checks whether the 'filesToBeDeletedPerPartition' field has been set.
* @return True if the 'filesToBeDeletedPerPartition' field has been set, false otherwise.
*/
public boolean hasFilesToBeDeletedPerPartition() {
return fieldSetFlags()[3];
}
/**
* Clears the value of the 'filesToBeDeletedPerPartition' field.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder clearFilesToBeDeletedPerPartition() {
filesToBeDeletedPerPartition = 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.HoodieCleanerPlan.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.HoodieCleanerPlan.Builder clearVersion() {
version = null;
fieldSetFlags()[4] = false;
return this;
}
/**
* Gets the value of the 'filePathsToBeDeletedPerPartition' field.
* This field replaces the field filesToBeDeletedPerPartition
* @return The value.
*/
public java.util.Map> getFilePathsToBeDeletedPerPartition() {
return filePathsToBeDeletedPerPartition;
}
/**
* Sets the value of the 'filePathsToBeDeletedPerPartition' field.
* This field replaces the field filesToBeDeletedPerPartition
* @param value The value of 'filePathsToBeDeletedPerPartition'.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder setFilePathsToBeDeletedPerPartition(java.util.Map> value) {
validate(fields()[5], value);
this.filePathsToBeDeletedPerPartition = value;
fieldSetFlags()[5] = true;
return this;
}
/**
* Checks whether the 'filePathsToBeDeletedPerPartition' field has been set.
* This field replaces the field filesToBeDeletedPerPartition
* @return True if the 'filePathsToBeDeletedPerPartition' field has been set, false otherwise.
*/
public boolean hasFilePathsToBeDeletedPerPartition() {
return fieldSetFlags()[5];
}
/**
* Clears the value of the 'filePathsToBeDeletedPerPartition' field.
* This field replaces the field filesToBeDeletedPerPartition
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder clearFilePathsToBeDeletedPerPartition() {
filePathsToBeDeletedPerPartition = null;
fieldSetFlags()[5] = false;
return this;
}
/**
* Gets the value of the 'partitionsToBeDeleted' field.
* partitions to be deleted
* @return The value.
*/
public java.util.List getPartitionsToBeDeleted() {
return partitionsToBeDeleted;
}
/**
* Sets the value of the 'partitionsToBeDeleted' field.
* partitions to be deleted
* @param value The value of 'partitionsToBeDeleted'.
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder setPartitionsToBeDeleted(java.util.List value) {
validate(fields()[6], value);
this.partitionsToBeDeleted = value;
fieldSetFlags()[6] = true;
return this;
}
/**
* Checks whether the 'partitionsToBeDeleted' field has been set.
* partitions to be deleted
* @return True if the 'partitionsToBeDeleted' field has been set, false otherwise.
*/
public boolean hasPartitionsToBeDeleted() {
return fieldSetFlags()[6];
}
/**
* Clears the value of the 'partitionsToBeDeleted' field.
* partitions to be deleted
* @return This builder.
*/
public org.apache.hudi.avro.model.HoodieCleanerPlan.Builder clearPartitionsToBeDeleted() {
partitionsToBeDeleted = null;
fieldSetFlags()[6] = false;
return this;
}
@Override
@SuppressWarnings("unchecked")
public HoodieCleanerPlan build() {
try {
HoodieCleanerPlan record = new HoodieCleanerPlan();
if (earliestInstantToRetainBuilder != null) {
record.earliestInstantToRetain = this.earliestInstantToRetainBuilder.build();
} else {
record.earliestInstantToRetain = fieldSetFlags()[0] ? this.earliestInstantToRetain : (org.apache.hudi.avro.model.HoodieActionInstant) defaultValue(fields()[0]);
}
record.lastCompletedCommitTimestamp = fieldSetFlags()[1] ? this.lastCompletedCommitTimestamp : (java.lang.String) defaultValue(fields()[1]);
record.policy = fieldSetFlags()[2] ? this.policy : (java.lang.String) defaultValue(fields()[2]);
record.filesToBeDeletedPerPartition = fieldSetFlags()[3] ? this.filesToBeDeletedPerPartition : (java.util.Map>) defaultValue(fields()[3]);
record.version = fieldSetFlags()[4] ? this.version : (java.lang.Integer) defaultValue(fields()[4]);
record.filePathsToBeDeletedPerPartition = fieldSetFlags()[5] ? this.filePathsToBeDeletedPerPartition : (java.util.Map>) defaultValue(fields()[5]);
record.partitionsToBeDeleted = fieldSetFlags()[6] ? this.partitionsToBeDeleted : (java.util.List) defaultValue(fields()[6]);
return record;
} catch (java.lang.Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
@SuppressWarnings("unchecked")
private static final org.apache.avro.io.DatumWriter
WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
@Override public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException {
WRITER$.write(this, SpecificData.getEncoder(out));
}
@SuppressWarnings("unchecked")
private static final org.apache.avro.io.DatumReader
READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
@Override public void readExternal(java.io.ObjectInput in)
throws java.io.IOException {
READER$.read(this, SpecificData.getDecoder(in));
}
}