Class CopyJobConfiguration.Builder (2.43.0)

public static final class CopyJobConfiguration.Builder extends JobConfiguration.Builder<CopyJobConfiguration,CopyJobConfiguration.Builder>

Inheritance

java.lang.Object > JobConfiguration.Builder > CopyJobConfiguration.Builder

Methods

build()

public CopyJobConfiguration build()

Creates an object.

Returns
Type Description
CopyJobConfiguration
Overrides

setCreateDisposition(JobInfo.CreateDisposition createDisposition)

public CopyJobConfiguration.Builder setCreateDisposition(JobInfo.CreateDisposition createDisposition)

Sets whether the job is allowed to create new tables. See Also: Create Disposition

Parameter
Name Description
createDisposition JobInfo.CreateDisposition
Returns
Type Description
CopyJobConfiguration.Builder

setDestinationEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)

public CopyJobConfiguration.Builder setDestinationEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
Parameter
Name Description
encryptionConfiguration EncryptionConfiguration
Returns
Type Description
CopyJobConfiguration.Builder

setDestinationExpirationTime(String destinationExpirationTime)

public CopyJobConfiguration.Builder setDestinationExpirationTime(String destinationExpirationTime)

Sets the time when the destination table expires. Expired tables will be deleted and their storage reclaimed. More info: https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationtablecopy

Parameter
Name Description
destinationExpirationTime String
Returns
Type Description
CopyJobConfiguration.Builder

setDestinationTable(TableId destinationTable)

public CopyJobConfiguration.Builder setDestinationTable(TableId destinationTable)

Sets the destination table of the copy job.

Parameter
Name Description
destinationTable TableId
Returns
Type Description
CopyJobConfiguration.Builder

setJobTimeoutMs(Long jobTimeoutMs)

public CopyJobConfiguration.Builder setJobTimeoutMs(Long jobTimeoutMs)

[Optional] Job timeout in milliseconds. If this time limit is exceeded, BigQuery may attempt to terminate the job.

Parameter
Name Description
jobTimeoutMs Long

jobTimeoutMs or null for none

Returns
Type Description
CopyJobConfiguration.Builder

setLabels(Map<String,String> labels)

public CopyJobConfiguration.Builder setLabels(Map<String,String> labels)

The labels associated with this job. You can use these to organize and group your jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.

Parameter
Name Description
labels Map<String,String>

labels or null for none

Returns
Type Description
CopyJobConfiguration.Builder

setOperationType(String operationType)

public CopyJobConfiguration.Builder setOperationType(String operationType)

Sets the supported operation types (COPY, CLONE, SNAPSHOT or RESTORE) in table copy job. More info: https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#operationtype

Parameter
Name Description
operationType String
Returns
Type Description
CopyJobConfiguration.Builder

setSourceTables(List<TableId> sourceTables)

public CopyJobConfiguration.Builder setSourceTables(List<TableId> sourceTables)

Sets the source tables to copy.

Parameter
Name Description
sourceTables List<TableId>
Returns
Type Description
CopyJobConfiguration.Builder

setWriteDisposition(JobInfo.WriteDisposition writeDisposition)

public CopyJobConfiguration.Builder setWriteDisposition(JobInfo.WriteDisposition writeDisposition)

Sets the action that should occur if the destination table already exists. See Also: Write Disposition

Parameter
Name Description
writeDisposition JobInfo.WriteDisposition
Returns
Type Description
CopyJobConfiguration.Builder