public class AWSGlueCatalogSyncClient extends org.apache.hudi.sync.common.HoodieSyncClient
| Modifier and Type | Field and Description |
|---|---|
protected software.amazon.awssdk.services.glue.GlueAsyncClient |
awsGlue |
config, metaClient, partitionValueExtractorHOODIE_LAST_COMMIT_COMPLETION_TIME_SYNC, HOODIE_LAST_COMMIT_TIME_SYNC| Constructor and Description |
|---|
AWSGlueCatalogSyncClient(HiveSyncConfig config) |
generateTempTableName, getActiveTimeline, getAllPartitionPathsOnStorage, getBasePath, getDroppedPartitionsSince, getMetaClient, getPartitionEvents, getPartitionEvents, getStorageSchema, getStorageSchema, getTableType, getWrittenPartitionsSince, isBootstrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLastCommitCompletionTimeSyncedpublic AWSGlueCatalogSyncClient(HiveSyncConfig config)
public List<org.apache.hudi.sync.common.model.Partition> getAllPartitions(String tableName)
public List<org.apache.hudi.sync.common.model.Partition> getPartitionsFromList(String tableName, List<String> partitionList)
public void addPartitionsToTable(String tableName, List<String> partitionsToAdd)
public void updatePartitionsToTable(String tableName, List<String> changedPartitions)
public boolean updateTableProperties(String tableName, Map<String,String> tableProperties)
public List<org.apache.hudi.sync.common.model.FieldSchema> getStorageFieldSchemas()
public boolean updateTableComments(String tableName, List<org.apache.hudi.sync.common.model.FieldSchema> fromMetastore, List<org.apache.hudi.sync.common.model.FieldSchema> fromStorage)
public void updateTableSchema(String tableName, org.apache.parquet.schema.MessageType newSchema)
public void createOrReplaceTable(String tableName, org.apache.parquet.schema.MessageType storageSchema, String inputFormatClass, String outputFormatClass, String serdeClass, Map<String,String> serdeProperties, Map<String,String> tableProperties)
public void createTable(String tableName, org.apache.parquet.schema.MessageType storageSchema, String inputFormatClass, String outputFormatClass, String serdeClass, Map<String,String> serdeProperties, Map<String,String> tableProperties)
public void managePartitionIndexes(String tableName) throws ExecutionException, InterruptedException
reference doc for partition indexes: https://docs.aws.amazon.com/glue/latest/dg/partition-indexes.html#partition-index-getpartitions
tableName - ExecutionExceptionInterruptedExceptionpublic boolean tableExists(String tableName)
public boolean databaseExists(String databaseName)
public void createDatabase(String databaseName)
public void close()
public void updateLastCommitTimeSynced(String tableName)
public void dropTable(String tableName)
public List<org.apache.hudi.sync.common.model.FieldSchema> getMetastoreFieldSchemas(String tableName)
public void updateLastReplicatedTimeStamp(String tableName, String timeStamp)
public void deleteLastReplicatedTimeStamp(String tableName)
public String generatePushDownFilter(List<String> writtenPartitions, List<org.apache.hudi.sync.common.model.FieldSchema> partitionFields)
public boolean updateSerdeProperties(String tableName, Map<String,String> serdeProperties, boolean useRealtimeFormat)
Copyright © 2024 The Apache Software Foundation. All rights reserved.