public class HoodieRollbackMetadata
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
HoodieRollbackMetadata.Builder
RecordBuilder for HoodieRollbackMetadata instances.
|
| Modifier and Type | Field and Description |
|---|---|
List<String> |
commitsRollback
Deprecated.
|
List<HoodieInstantInfo> |
instantsRollback
Deprecated.
|
Map<String,HoodieRollbackPartitionMetadata> |
partitionMetadata
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
String |
startRollbackTime
Deprecated.
|
long |
timeTakenInMillis
Deprecated.
|
int |
totalFilesDeleted
Deprecated.
|
Integer |
version
Deprecated.
|
| Constructor and Description |
|---|
HoodieRollbackMetadata()
Default constructor.
|
HoodieRollbackMetadata(String startRollbackTime,
Long timeTakenInMillis,
Integer totalFilesDeleted,
List<String> commitsRollback,
Map<String,HoodieRollbackPartitionMetadata> partitionMetadata,
Integer version,
List<HoodieInstantInfo> instantsRollback)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<HoodieRollbackMetadata> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static HoodieRollbackMetadata |
fromByteBuffer(ByteBuffer b)
Deserializes a HoodieRollbackMetadata from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
List<String> |
getCommitsRollback()
Gets the value of the 'commitsRollback' field.
|
static org.apache.avro.message.BinaryMessageDecoder<HoodieRollbackMetadata> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
List<HoodieInstantInfo> |
getInstantsRollback()
Gets the value of the 'instantsRollback' field.
|
Map<String,HoodieRollbackPartitionMetadata> |
getPartitionMetadata()
Gets the value of the 'partitionMetadata' field.
|
org.apache.avro.Schema |
getSchema() |
String |
getStartRollbackTime()
Gets the value of the 'startRollbackTime' field.
|
Long |
getTimeTakenInMillis()
Gets the value of the 'timeTakenInMillis' field.
|
Integer |
getTotalFilesDeleted()
Gets the value of the 'totalFilesDeleted' field.
|
Integer |
getVersion()
Gets the value of the 'version' field.
|
static HoodieRollbackMetadata.Builder |
newBuilder()
Creates a new HoodieRollbackMetadata RecordBuilder.
|
static HoodieRollbackMetadata.Builder |
newBuilder(HoodieRollbackMetadata.Builder other)
Creates a new HoodieRollbackMetadata RecordBuilder by copying an existing Builder.
|
static HoodieRollbackMetadata.Builder |
newBuilder(HoodieRollbackMetadata other)
Creates a new HoodieRollbackMetadata RecordBuilder by copying an existing HoodieRollbackMetadata instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setCommitsRollback(List<String> value)
Sets the value of the 'commitsRollback' field.
|
void |
setInstantsRollback(List<HoodieInstantInfo> value)
Sets the value of the 'instantsRollback' field.
|
void |
setPartitionMetadata(Map<String,HoodieRollbackPartitionMetadata> value)
Sets the value of the 'partitionMetadata' field.
|
void |
setStartRollbackTime(String value)
Sets the value of the 'startRollbackTime' field.
|
void |
setTimeTakenInMillis(Long value)
Sets the value of the 'timeTakenInMillis' field.
|
void |
setTotalFilesDeleted(Integer value)
Sets the value of the 'totalFilesDeleted' field.
|
void |
setVersion(Integer value)
Sets the value of the 'version' field.
|
ByteBuffer |
toByteBuffer()
Serializes this HoodieRollbackMetadata to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public String startRollbackTime
@Deprecated public long timeTakenInMillis
@Deprecated public int totalFilesDeleted
@Deprecated public List<String> commitsRollback
@Deprecated public Map<String,HoodieRollbackPartitionMetadata> partitionMetadata
@Deprecated public Integer version
@Deprecated public List<HoodieInstantInfo> instantsRollback
public HoodieRollbackMetadata()
newBuilder().public HoodieRollbackMetadata(String startRollbackTime, Long timeTakenInMillis, Integer totalFilesDeleted, List<String> commitsRollback, Map<String,HoodieRollbackPartitionMetadata> partitionMetadata, Integer version, List<HoodieInstantInfo> instantsRollback)
startRollbackTime - The new value for startRollbackTimetimeTakenInMillis - The new value for timeTakenInMillistotalFilesDeleted - The new value for totalFilesDeletedcommitsRollback - The new value for commitsRollbackpartitionMetadata - The new value for partitionMetadataversion - The new value for versioninstantsRollback - The new value for instantsRollbackpublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<HoodieRollbackMetadata> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<HoodieRollbackMetadata> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static HoodieRollbackMetadata fromByteBuffer(ByteBuffer b) throws IOException
IOExceptionpublic org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic String getStartRollbackTime()
public void setStartRollbackTime(String value)
value - the value to set.public Long getTimeTakenInMillis()
public void setTimeTakenInMillis(Long value)
value - the value to set.public Integer getTotalFilesDeleted()
public void setTotalFilesDeleted(Integer value)
value - the value to set.public List<String> getCommitsRollback()
public void setCommitsRollback(List<String> value)
value - the value to set.public Map<String,HoodieRollbackPartitionMetadata> getPartitionMetadata()
public void setPartitionMetadata(Map<String,HoodieRollbackPartitionMetadata> value)
value - the value to set.public Integer getVersion()
public void setVersion(Integer value)
value - the value to set.public List<HoodieInstantInfo> getInstantsRollback()
public void setInstantsRollback(List<HoodieInstantInfo> value)
value - the value to set.public static HoodieRollbackMetadata.Builder newBuilder()
public static HoodieRollbackMetadata.Builder newBuilder(HoodieRollbackMetadata.Builder other)
other - The existing builder to copy.public static HoodieRollbackMetadata.Builder newBuilder(HoodieRollbackMetadata other)
other - The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.