Class BqToBqStorageSchemaConverter


  • public class BqToBqStorageSchemaConverter
    extends Object
    Converts structure from BigQuery client to BigQueryStorage client
    • Constructor Detail

      • BqToBqStorageSchemaConverter

        public BqToBqStorageSchemaConverter()
    • 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