public class MetadataConversionUtils extends Object
HoodieArchivedMetaEntry.| Constructor and Description |
|---|
MetadataConversionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends org.apache.avro.specific.SpecificRecordBase> |
convertCommitMetadata(HoodieCommitMetadata hoodieCommitMetadata)
Convert commit metadata from json to avro.
|
static <T extends org.apache.avro.specific.SpecificRecordBase> |
convertCommitMetadataToJsonBytes(T avroMetaData,
Class<T> clazz)
Convert commit metadata from avro to json.
|
static HoodieLSMTimelineInstant |
createLSMTimelineInstant(ActiveAction activeAction,
HoodieTableMetaClient metaClient) |
static HoodieArchivedMetaEntry |
createMetaWrapper(HoodieInstant hoodieInstant,
HoodieTableMetaClient metaClient) |
static HoodieArchivedMetaEntry |
createMetaWrapperForEmptyInstant(HoodieInstant hoodieInstant) |
static Option<HoodieCommitMetadata> |
getHoodieCommitMetadata(HoodieTableMetaClient metaClient,
HoodieInstant hoodieInstant) |
public static HoodieArchivedMetaEntry createMetaWrapper(HoodieInstant hoodieInstant, HoodieTableMetaClient metaClient) throws IOException
IOExceptionpublic static HoodieLSMTimelineInstant createLSMTimelineInstant(ActiveAction activeAction, HoodieTableMetaClient metaClient)
public static HoodieArchivedMetaEntry createMetaWrapperForEmptyInstant(HoodieInstant hoodieInstant)
public static Option<HoodieCommitMetadata> getHoodieCommitMetadata(HoodieTableMetaClient metaClient, HoodieInstant hoodieInstant) throws IOException
IOExceptionpublic static <T extends org.apache.avro.specific.SpecificRecordBase> T convertCommitMetadata(HoodieCommitMetadata hoodieCommitMetadata)
public static <T extends org.apache.avro.specific.SpecificRecordBase> byte[] convertCommitMetadataToJsonBytes(T avroMetaData,
Class<T> clazz)
Copyright © 2024 The Apache Software Foundation. All rights reserved.