public class HoodieMetadataPayload extends Object implements HoodieRecordPayload<HoodieMetadataPayload>
| Constructor and Description |
|---|
HoodieMetadataPayload(Option<org.apache.avro.generic.GenericRecord> record) |
| Modifier and Type | Method and Description |
|---|---|
Option<org.apache.avro.generic.IndexedRecord> |
combineAndGetUpdateValue(org.apache.avro.generic.IndexedRecord oldRecord,
org.apache.avro.Schema schema)
This methods is deprecated.
|
static HoodieRecord<HoodieMetadataPayload> |
createPartitionFilesRecord(String partition,
Option<Map<String,Long>> filesAdded,
Option<List<String>> filesDeleted)
Create and return a
HoodieMetadataPayload to save list of files within a partition. |
static HoodieRecord<HoodieMetadataPayload> |
createPartitionListRecord(List<String> partitions)
Create and return a
HoodieMetadataPayload to save list of partitions. |
List<String> |
getDeletions()
Returns the list of filenames deleted as part of this record.
|
List<String> |
getFilenames()
Returns the list of filenames added as part of this record.
|
org.apache.hadoop.fs.FileStatus[] |
getFileStatuses(org.apache.hadoop.conf.Configuration hadoopConf,
org.apache.hadoop.fs.Path partitionPath)
Returns the files added as part of this record.
|
Option<org.apache.avro.generic.IndexedRecord> |
getInsertValue(org.apache.avro.Schema schema)
This method is deprecated.
|
HoodieMetadataPayload |
preCombine(HoodieMetadataPayload previousRecord)
This method is deprecated.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcombineAndGetUpdateValue, getInsertValue, getMetadata, preCombinepublic HoodieMetadataPayload(Option<org.apache.avro.generic.GenericRecord> record)
public static HoodieRecord<HoodieMetadataPayload> createPartitionListRecord(List<String> partitions)
HoodieMetadataPayload to save list of partitions.partitions - The list of partitionspublic static HoodieRecord<HoodieMetadataPayload> createPartitionFilesRecord(String partition, Option<Map<String,Long>> filesAdded, Option<List<String>> filesDeleted)
HoodieMetadataPayload to save list of files within a partition.partition - The name of the partitionfilesAdded - Mapping of files to their sizes for files which have been added to this partitionfilesDeleted - List of files which have been deleted from this partitionpublic HoodieMetadataPayload preCombine(HoodieMetadataPayload previousRecord)
HoodieRecordPayloadHoodieRecordPayload.preCombine(HoodieRecordPayload, Properties) method.preCombine in interface HoodieRecordPayload<HoodieMetadataPayload>public Option<org.apache.avro.generic.IndexedRecord> combineAndGetUpdateValue(org.apache.avro.generic.IndexedRecord oldRecord, org.apache.avro.Schema schema) throws IOException
HoodieRecordPayloadHoodieRecordPayload.combineAndGetUpdateValue(IndexedRecord, Schema, Properties) for java docs.combineAndGetUpdateValue in interface HoodieRecordPayload<HoodieMetadataPayload>IOExceptionpublic Option<org.apache.avro.generic.IndexedRecord> getInsertValue(org.apache.avro.Schema schema) throws IOException
HoodieRecordPayloadHoodieRecordPayload.getInsertValue(Schema, Properties) for java docs.getInsertValue in interface HoodieRecordPayload<HoodieMetadataPayload>schema - Schema used for recordIndexedRecord to be inserted.IOExceptionpublic List<String> getFilenames()
public List<String> getDeletions()
public org.apache.hadoop.fs.FileStatus[] getFileStatuses(org.apache.hadoop.conf.Configuration hadoopConf,
org.apache.hadoop.fs.Path partitionPath)
throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.