Class TableExportConfig


  • public class TableExportConfig
    extends Object
    Settings for BQ table export operation. An export consists of copying table's contents to GoogleStorage. Immutable.
    Author:
    Eyal Rubichi, Eyal Schneider
    • Method Detail

      • newBuilder

        public static TableExportConfig.Builder newBuilder​(com.google.cloud.bigquery.TableId sourceTableReference,
                                                           Set<String> destinationURIs)
        Parameters:
        sourceTableReference - reference to the table to export
        destinationURIs - The set of fully-qualified Google Cloud Storage URIs where the table should be written to. A URI may contain a wildcard ('*') in the file name part of the path, indicating that a sharded output is required. BigQuery makes it mandatory for large tables.
        Returns:
        A new builder initialized with the given source and destinations, having default values for other fields.
      • newBuilder

        public static TableExportConfig.Builder newBuilder​(com.google.cloud.bigquery.TableId sourceTableReference,
                                                           String destinationURI)
        Parameters:
        sourceTableReference - reference to the table to export
        destinationURI - The fully-qualified Google Cloud Storage URI where the table should be written to. A URI may contain a wildcard ('*') in the file name part of the path, indicating that a sharded output is required. BigQuery makes it mandatory for large tables.
        Returns:
        A new builder initialized with the given source and destination, having default values for other fields.
      • getCSVFieldDelimiter

        public char getCSVFieldDelimiter()
        Returns:
        the field delimiter in the output file/s. Default is ','. Relevant only for CSV format.
      • isPrintHeader

        public boolean isPrintHeader()
        Returns:
        indicates whether the file should contain the column names. Relevant only for CSV format. Default is true.
      • getSourceTableReference

        public com.google.cloud.bigquery.TableId getSourceTableReference()
        Returns:
        reference to the table to export
      • getDestinationURIs

        public Set<String> getDestinationURIs()
        Returns:
        The set of fully-qualified Google Cloud Storage URIs where the table should be written to. A URI may contain a wildcard ('*') in the file name part of the path, indicating that a sharded output is required. BigQuery makes it mandatory for large tables.
      • getTimeoutMs

        public Long getTimeoutMs()
        Returns:
        The export execution timeout, in milliseconds. Null means no timeout. NOTE: Google's API doesn't seem to always respect this limit, and it's not always clear which timeout applies (The export level timeout here or the global one as provided in the BigQueryConnector's constructor.