Class CopyJobConfiguration (2.51.0)

publicfinalclass CopyJobConfigurationextendsJobConfiguration

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.

Inheritance

Object > JobConfiguration > CopyJobConfiguration

Static Methods

newBuilder(TableId destinationTable, TableId sourceTable)

publicstaticCopyJobConfiguration.BuildernewBuilder(TableIddestinationTable,TableIdsourceTable)

Creates a builder for a BigQuery Copy Job configuration given destination and source table.

Parameters
Name Description
destinationTable TableId
sourceTable TableId
Returns
Type Description
CopyJobConfiguration.Builder

newBuilder(TableId destinationTable, List<TableId> sourceTables)

publicstaticCopyJobConfiguration.BuildernewBuilder(TableIddestinationTable,List<TableId>sourceTables)

Creates a builder for a BigQuery Copy Job configuration given destination and source tables.

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

of(TableId destinationTable, TableId sourceTable)

publicstaticCopyJobConfigurationof(TableIddestinationTable,TableIdsourceTable)

Returns a BigQuery Copy Job configuration for the given destination and source table.

Parameters
Name Description
destinationTable TableId
sourceTable TableId
Returns
Type Description
CopyJobConfiguration

of(TableId destinationTable, List<TableId> sourceTables)

publicstaticCopyJobConfigurationof(TableIddestinationTable,List<TableId>sourceTables)

Returns a BigQuery Copy Job configuration for the given destination and source tables.

Parameters
Name Description
destinationTable TableId
sourceTables List<TableId>
Returns
Type Description
CopyJobConfiguration

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateDisposition()

publicJobInfo.CreateDispositiongetCreateDisposition()

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

Returns
Type Description
JobInfo.CreateDisposition

getDestinationEncryptionConfiguration()

publicEncryptionConfigurationgetDestinationEncryptionConfiguration()
Returns
Type Description
EncryptionConfiguration

getDestinationExpirationTime()

publicStringgetDestinationExpirationTime()

Returns the time when the destination table expires

Returns
Type Description
String

getDestinationTable()

publicTableIdgetDestinationTable()

Returns the destination table to load the data into.

Returns
Type Description
TableId

getJobTimeoutMs()

publicLonggetJobTimeoutMs()

Returns the timeout associated with this job

Returns
Type Description
Long

getLabels()

publicMap<String,String>getLabels()

Returns the labels associated with this job

Returns
Type Description
Map<String,String>

getOperationType()

publicStringgetOperationType()

Returns the table copy job type

Returns
Type Description
String

getReservation()

publicStringgetReservation()

Returns the reservation associated with this job

Returns
Type Description
String

getSourceTables()

publicList<TableId>getSourceTables()

Returns the source tables to copy.

Returns
Type Description
List<TableId>

getWriteDisposition()

publicJobInfo.WriteDispositiongetWriteDisposition()

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

Returns
Type Description
JobInfo.WriteDisposition

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

toBuilder()

publicCopyJobConfiguration.BuildertoBuilder()

Returns a builder for the object.

Returns
Type Description
CopyJobConfiguration.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.