public class HoodieReplaceCommitMetadata
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
HoodieReplaceCommitMetadata.Builder
RecordBuilder for HoodieReplaceCommitMetadata instances.
|
| Modifier and Type | Field and Description |
|---|---|
Map<String,String> |
extraMetadata
Deprecated.
|
String |
operationType
Deprecated.
|
Map<String,List<String>> |
partitionToReplaceFileIds
Deprecated.
|
Map<String,List<HoodieWriteStat>> |
partitionToWriteStats
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Integer |
version
Deprecated.
|
| Constructor and Description |
|---|
HoodieReplaceCommitMetadata()
Default constructor.
|
HoodieReplaceCommitMetadata(Map<String,List<HoodieWriteStat>> partitionToWriteStats,
Map<String,String> extraMetadata,
Integer version,
String operationType,
Map<String,List<String>> partitionToReplaceFileIds)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<HoodieReplaceCommitMetadata> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static HoodieReplaceCommitMetadata |
fromByteBuffer(ByteBuffer b)
Deserializes a HoodieReplaceCommitMetadata from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<HoodieReplaceCommitMetadata> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
Map<String,String> |
getExtraMetadata()
Gets the value of the 'extraMetadata' field.
|
String |
getOperationType()
Gets the value of the 'operationType' field.
|
Map<String,List<String>> |
getPartitionToReplaceFileIds()
Gets the value of the 'partitionToReplaceFileIds' field.
|
Map<String,List<HoodieWriteStat>> |
getPartitionToWriteStats()
Gets the value of the 'partitionToWriteStats' field.
|
org.apache.avro.Schema |
getSchema() |
Integer |
getVersion()
Gets the value of the 'version' field.
|
static HoodieReplaceCommitMetadata.Builder |
newBuilder()
Creates a new HoodieReplaceCommitMetadata RecordBuilder.
|
static HoodieReplaceCommitMetadata.Builder |
newBuilder(HoodieReplaceCommitMetadata.Builder other)
Creates a new HoodieReplaceCommitMetadata RecordBuilder by copying an existing Builder.
|
static HoodieReplaceCommitMetadata.Builder |
newBuilder(HoodieReplaceCommitMetadata other)
Creates a new HoodieReplaceCommitMetadata RecordBuilder by copying an existing HoodieReplaceCommitMetadata instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setExtraMetadata(Map<String,String> value)
Sets the value of the 'extraMetadata' field.
|
void |
setOperationType(String value)
Sets the value of the 'operationType' field.
|
void |
setPartitionToReplaceFileIds(Map<String,List<String>> value)
Sets the value of the 'partitionToReplaceFileIds' field.
|
void |
setPartitionToWriteStats(Map<String,List<HoodieWriteStat>> value)
Sets the value of the 'partitionToWriteStats' field.
|
void |
setVersion(Integer value)
Sets the value of the 'version' field.
|
ByteBuffer |
toByteBuffer()
Serializes this HoodieReplaceCommitMetadata to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public Map<String,List<HoodieWriteStat>> partitionToWriteStats
@Deprecated public Map<String,String> extraMetadata
@Deprecated public Integer version
@Deprecated public String operationType
@Deprecated public Map<String,List<String>> partitionToReplaceFileIds
public HoodieReplaceCommitMetadata()
newBuilder().public HoodieReplaceCommitMetadata(Map<String,List<HoodieWriteStat>> partitionToWriteStats, Map<String,String> extraMetadata, Integer version, String operationType, Map<String,List<String>> partitionToReplaceFileIds)
partitionToWriteStats - The new value for partitionToWriteStatsextraMetadata - The new value for extraMetadataversion - The new value for versionoperationType - The new value for operationTypepartitionToReplaceFileIds - The new value for partitionToReplaceFileIdspublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<HoodieReplaceCommitMetadata> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<HoodieReplaceCommitMetadata> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static HoodieReplaceCommitMetadata 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 Map<String,List<HoodieWriteStat>> getPartitionToWriteStats()
public void setPartitionToWriteStats(Map<String,List<HoodieWriteStat>> value)
value - the value to set.public Map<String,String> getExtraMetadata()
public void setExtraMetadata(Map<String,String> value)
value - the value to set.public Integer getVersion()
public void setVersion(Integer value)
value - the value to set.public String getOperationType()
public void setOperationType(String value)
value - the value to set.public Map<String,List<String>> getPartitionToReplaceFileIds()
public void setPartitionToReplaceFileIds(Map<String,List<String>> value)
value - the value to set.public static HoodieReplaceCommitMetadata.Builder newBuilder()
public static HoodieReplaceCommitMetadata.Builder newBuilder(HoodieReplaceCommitMetadata.Builder other)
other - The existing builder to copy.public static HoodieReplaceCommitMetadata.Builder newBuilder(HoodieReplaceCommitMetadata 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.