All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.bigquery.model.JobConfigurationTableCopy.html Maven / Gradle / Ivy

There is a newer version: v2-rev20241027-2.0.0
Show newest version






JobConfigurationTableCopy (BigQuery API v2-rev20240616-2.0.0)












com.google.api.services.bigquery.model

Class JobConfigurationTableCopy

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class JobConfigurationTableCopy
    extends com.google.api.client.json.GenericJson
    JobConfigurationTableCopy configures a job that copies data from one table to another. For more information on copying tables, see [Copy a table](https://cloud.google.com/bigquery/docs/managing-tables#copy-table).

    This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the BigQuery API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • JobConfigurationTableCopy

        public JobConfigurationTableCopy()
    • Method Detail

      • getCreateDisposition

        public String getCreateDisposition()
        Optional. Specifies whether the job is allowed to create new tables. The following values are supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
        Returns:
        value or null for none
      • setCreateDisposition

        public JobConfigurationTableCopy setCreateDisposition(String createDisposition)
        Optional. Specifies whether the job is allowed to create new tables. The following values are supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
        Parameters:
        createDisposition - createDisposition or null for none
      • getDestinationEncryptionConfiguration

        public EncryptionConfiguration getDestinationEncryptionConfiguration()
        Custom encryption configuration (e.g., Cloud KMS keys).
        Returns:
        value or null for none
      • setDestinationEncryptionConfiguration

        public JobConfigurationTableCopy setDestinationEncryptionConfiguration(EncryptionConfiguration destinationEncryptionConfiguration)
        Custom encryption configuration (e.g., Cloud KMS keys).
        Parameters:
        destinationEncryptionConfiguration - destinationEncryptionConfiguration or null for none
      • getDestinationExpirationTime

        public String getDestinationExpirationTime()
        Optional. The time when the destination table expires. Expired tables will be deleted and their storage reclaimed.
        Returns:
        value or null for none
      • setDestinationExpirationTime

        public JobConfigurationTableCopy setDestinationExpirationTime(String destinationExpirationTime)
        Optional. The time when the destination table expires. Expired tables will be deleted and their storage reclaimed.
        Parameters:
        destinationExpirationTime - destinationExpirationTime or null for none
      • getDestinationTable

        public TableReference getDestinationTable()
        [Required] The destination table.
        Returns:
        value or null for none
      • setDestinationTable

        public JobConfigurationTableCopy setDestinationTable(TableReference destinationTable)
        [Required] The destination table.
        Parameters:
        destinationTable - destinationTable or null for none
      • getOperationType

        public String getOperationType()
        Optional. Supported operation types in table copy job.
        Returns:
        value or null for none
      • setOperationType

        public JobConfigurationTableCopy setOperationType(String operationType)
        Optional. Supported operation types in table copy job.
        Parameters:
        operationType - operationType or null for none
      • getSourceTable

        public TableReference getSourceTable()
        [Pick one] Source table to copy.
        Returns:
        value or null for none
      • getSourceTables

        public List<TableReference> getSourceTables()
        [Pick one] Source tables to copy.
        Returns:
        value or null for none
      • getWriteDisposition

        public String getWriteDisposition()
        Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data and uses the schema and table constraints from the source table. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.
        Returns:
        value or null for none
      • setWriteDisposition

        public JobConfigurationTableCopy setWriteDisposition(String writeDisposition)
        Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data and uses the schema and table constraints from the source table. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.
        Parameters:
        writeDisposition - writeDisposition or null for none

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy