Package com.zendesk.maxwell.schema
Class BqToBqStorageSchemaConverter
- java.lang.Object
-
- com.zendesk.maxwell.schema.BqToBqStorageSchemaConverter
-
public class BqToBqStorageSchemaConverter extends Object
Converts structure from BigQuery client to BigQueryStorage client
-
-
Constructor Summary
Constructors Constructor Description BqToBqStorageSchemaConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.cloud.bigquery.storage.v1.TableFieldSchema
convertFieldSchema(com.google.cloud.bigquery.Field field)
Converts from bigquery v2 Field Schema to bigquery storage API Field Schema.static com.google.cloud.bigquery.storage.v1.TableSchema
convertTableSchema(com.google.cloud.bigquery.Schema schema)
Converts from BigQuery client Table Schema to bigquery storage API Table Schema.
-
-
-
Method Detail
-
convertTableSchema
public static com.google.cloud.bigquery.storage.v1.TableSchema convertTableSchema(com.google.cloud.bigquery.Schema schema)
Converts from BigQuery client Table Schema to bigquery storage API Table Schema.- Parameters:
schema
- the BigQuery client Table Schema- Returns:
- the bigquery storage API Table Schema
-
convertFieldSchema
public static com.google.cloud.bigquery.storage.v1.TableFieldSchema convertFieldSchema(com.google.cloud.bigquery.Field field)
Converts from bigquery v2 Field Schema to bigquery storage API Field Schema.- Parameters:
field
- the BigQuery client Field Schema- Returns:
- the bigquery storage API Field Schema
-
-