Class CopyJobConfiguration

java.lang.Object
com.google.cloud.bigquery.JobConfiguration
com.google.cloud.bigquery.CopyJobConfiguration
All Implemented Interfaces:
Serializable

public final class CopyJobConfiguration extends JobConfiguration
Google BigQuery copy job configuration. A copy job copies an existing table to another new or existing table. Copy job configurations have JobConfiguration.Type.COPY type.
See Also:
  • Method Details

    • getSourceTables

      public List<TableId> getSourceTables()
      Returns the source tables to copy.
    • getDestinationTable

      public TableId getDestinationTable()
      Returns the destination table to load the data into.
    • getOperationType

      public String getOperationType()
      Returns the table copy job type
    • getDestinationExpirationTime

      public String getDestinationExpirationTime()
      Returns the time when the destination table expires
    • getDestinationEncryptionConfiguration

      public EncryptionConfiguration getDestinationEncryptionConfiguration()
    • getCreateDisposition

      public JobInfo.CreateDisposition getCreateDisposition()
      Returns whether the job is allowed to create new tables.
      See Also:
    • getWriteDisposition

      public JobInfo.WriteDisposition getWriteDisposition()
      Returns the action that should occur if the destination table already exists.
      See Also:
    • getLabels

      public Map<String,String> getLabels()
      Returns the labels associated with this job
    • getJobTimeoutMs

      public Long getJobTimeoutMs()
      Returns the timeout associated with this job
    • toBuilder

      public CopyJobConfiguration.Builder toBuilder()
      Description copied from class: JobConfiguration
      Returns a builder for the object.
      Specified by:
      toBuilder in class JobConfiguration
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • newBuilder

      public static CopyJobConfiguration.Builder newBuilder(TableId destinationTable, TableId sourceTable)
      Creates a builder for a BigQuery Copy Job configuration given destination and source table.
    • newBuilder

      public static CopyJobConfiguration.Builder newBuilder(TableId destinationTable, List<TableId> sourceTables)
      Creates a builder for a BigQuery Copy Job configuration given destination and source tables.
    • of

      public static CopyJobConfiguration of(TableId destinationTable, TableId sourceTable)
      Returns a BigQuery Copy Job configuration for the given destination and source table.
    • of

      public static CopyJobConfiguration of(TableId destinationTable, List<TableId> sourceTables)
      Returns a BigQuery Copy Job configuration for the given destination and source tables.