public class HoodieBigQuerySyncClient extends HoodieSyncClient
| Modifier and Type | Field and Description |
|---|---|
protected BigQuerySyncConfig |
config |
metaClient, partitionValueExtractorHOODIE_LAST_COMMIT_COMPLETION_TIME_SYNC, HOODIE_LAST_COMMIT_TIME_SYNC| Constructor and Description |
|---|
HoodieBigQuerySyncClient(BigQuerySyncConfig config,
HoodieTableMetaClient metaClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
createManifestTable(String tableName,
String sourceUri) |
void |
createOrUpdateTableUsingBqManifestFile(String tableName,
String bqManifestFileUri,
String sourceUriPrefix,
com.google.cloud.bigquery.Schema schema) |
void |
createSnapshotView(String viewName,
String versionsTableName,
String manifestTableName) |
void |
createVersionsTable(String tableName,
String sourceUri,
String sourceUriPrefix,
List<String> partitionFields) |
boolean |
datasetExists() |
Map<String,String> |
getMetastoreSchema(String tableName) |
boolean |
tableExists(String tableName) |
boolean |
tableNotExistsOrDoesNotMatchSpecification(String tableName)
Checks for the existence of a table that uses the manifest file approach and matches other requirements.
|
void |
updateTableSchema(String tableName,
com.google.cloud.bigquery.Schema schema,
List<String> partitionFields)
Updates the schema for the given table if the schema has changed.
|
generateTempTableName, getActiveTimeline, getAllPartitionPathsOnStorage, getBasePath, getDroppedPartitionsSince, getMetaClient, getPartitionEvents, getPartitionEvents, getStorageSchema, getStorageSchema, getTableType, getWrittenPartitionsSince, isBootstrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPartitionsToTable, createDatabase, createOrReplaceTable, createTable, databaseExists, deleteLastReplicatedTimeStamp, dropPartitions, dropTable, generatePushDownFilter, getAllPartitions, getLastCommitCompletionTimeSynced, getLastCommitTimeSynced, getLastReplicatedTime, getMetastoreFieldSchemas, getPartitionsFromList, getStorageFieldSchemas, getTableLocation, updateLastCommitTimeSynced, updateLastReplicatedTimeStamp, updatePartitionsToTable, updateSerdeProperties, updateTableComments, updateTableProperties, updateTableSchemaprotected final BigQuerySyncConfig config
public HoodieBigQuerySyncClient(BigQuerySyncConfig config, HoodieTableMetaClient metaClient)
public void createOrUpdateTableUsingBqManifestFile(String tableName, String bqManifestFileUri, String sourceUriPrefix, com.google.cloud.bigquery.Schema schema)
public void updateTableSchema(String tableName, com.google.cloud.bigquery.Schema schema, List<String> partitionFields)
tableName - name of the table in BigQueryschema - latest schema for the tablepublic void createVersionsTable(String tableName, String sourceUri, String sourceUriPrefix, List<String> partitionFields)
public void createSnapshotView(String viewName, String versionsTableName, String manifestTableName)
public boolean datasetExists()
public boolean tableExists(String tableName)
public boolean tableNotExistsOrDoesNotMatchSpecification(String tableName)
tableName - name of the tablepublic void close()
Copyright © 2025 The Apache Software Foundation. All rights reserved.