Package com.google.cloud.bigquery
Class CopyJobConfiguration.Builder
- java.lang.Object
-
- com.google.cloud.bigquery.JobConfiguration.Builder<CopyJobConfiguration,CopyJobConfiguration.Builder>
-
- com.google.cloud.bigquery.CopyJobConfiguration.Builder
-
- Enclosing class:
- CopyJobConfiguration
public static final class CopyJobConfiguration.Builder extends JobConfiguration.Builder<CopyJobConfiguration,CopyJobConfiguration.Builder>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyJobConfigurationbuild()Creates an object.CopyJobConfiguration.BuildersetCreateDisposition(JobInfo.CreateDisposition createDisposition)Sets whether the job is allowed to create new tables.CopyJobConfiguration.BuildersetDestinationEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)CopyJobConfiguration.BuildersetDestinationExpirationTime(String destinationExpirationTime)Sets the time when the destination table expires.CopyJobConfiguration.BuildersetDestinationTable(TableId destinationTable)Sets the destination table of the copy job.CopyJobConfiguration.BuildersetJobTimeoutMs(Long jobTimeoutMs)[Optional] Job timeout in milliseconds.CopyJobConfiguration.BuildersetLabels(Map<String,String> labels)The labels associated with this job.CopyJobConfiguration.BuildersetOperationType(String operationType)Sets the supported operation types (COPY, CLONE, SNAPSHOT or RESTORE) in table copy job.CopyJobConfiguration.BuildersetSourceTables(List<TableId> sourceTables)Sets the source tables to copy.CopyJobConfiguration.BuildersetWriteDisposition(JobInfo.WriteDisposition writeDisposition)Sets the action that should occur if the destination table already exists.
-
-
-
Method Detail
-
setSourceTables
public CopyJobConfiguration.Builder setSourceTables(List<TableId> sourceTables)
Sets the source tables to copy.
-
setDestinationTable
public CopyJobConfiguration.Builder setDestinationTable(TableId destinationTable)
Sets the destination table of the copy job.
-
setOperationType
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
-
setDestinationExpirationTime
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
-
setDestinationEncryptionConfiguration
public CopyJobConfiguration.Builder setDestinationEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
-
setCreateDisposition
public CopyJobConfiguration.Builder setCreateDisposition(JobInfo.CreateDisposition createDisposition)
Sets whether the job is allowed to create new tables.- See Also:
- Create Disposition
-
setWriteDisposition
public CopyJobConfiguration.Builder setWriteDisposition(JobInfo.WriteDisposition writeDisposition)
Sets the action that should occur if the destination table already exists.- See Also:
- Write Disposition
-
setLabels
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.- Parameters:
labels- labels ornullfor none
-
setJobTimeoutMs
public CopyJobConfiguration.Builder setJobTimeoutMs(Long jobTimeoutMs)
[Optional] Job timeout in milliseconds. If this time limit is exceeded, BigQuery may attempt to terminate the job.- Parameters:
jobTimeoutMs- jobTimeoutMs ornullfor none
-
build
public CopyJobConfiguration build()
Description copied from class:JobConfiguration.BuilderCreates an object.- Specified by:
buildin classJobConfiguration.Builder<CopyJobConfiguration,CopyJobConfiguration.Builder>
-
-