Class CopyJobConfiguration (2.36.0)

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.

Inheritance

Object > JobConfiguration > CopyJobConfiguration

Static Methods

newBuilder(TableId destinationTable, TableId sourceTable)

public static CopyJobConfiguration.Builder newBuilder(TableId destinationTable, TableId sourceTable)

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

Parameters
NameDescription
destinationTableTableId
sourceTableTableId
Returns
TypeDescription
CopyJobConfiguration.Builder

newBuilder(TableId destinationTable, List<TableId> sourceTables)

public static CopyJobConfiguration.Builder newBuilder(TableId destinationTable, List<TableId> sourceTables)

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

Parameters
NameDescription
destinationTableTableId
sourceTablesList<TableId>
Returns
TypeDescription
CopyJobConfiguration.Builder

of(TableId destinationTable, TableId sourceTable)

public static CopyJobConfiguration of(TableId destinationTable, TableId sourceTable)

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

Parameters
NameDescription
destinationTableTableId
sourceTableTableId
Returns
TypeDescription
CopyJobConfiguration

of(TableId destinationTable, List<TableId> sourceTables)

public static CopyJobConfiguration of(TableId destinationTable, List<TableId> sourceTables)

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

Parameters
NameDescription
destinationTableTableId
sourceTablesList<TableId>
Returns
TypeDescription
CopyJobConfiguration

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCreateDisposition()

public JobInfo.CreateDisposition getCreateDisposition()

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

Returns
TypeDescription
JobInfo.CreateDisposition

getDestinationEncryptionConfiguration()

public EncryptionConfiguration getDestinationEncryptionConfiguration()
Returns
TypeDescription
EncryptionConfiguration

getDestinationExpirationTime()

public String getDestinationExpirationTime()

Returns the time when the destination table expires

Returns
TypeDescription
String

getDestinationTable()

public TableId getDestinationTable()

Returns the destination table to load the data into.

Returns
TypeDescription
TableId

getJobTimeoutMs()

public Long getJobTimeoutMs()

Returns the timeout associated with this job

Returns
TypeDescription
Long

getLabels()

public Map<String,String> getLabels()

Returns the labels associated with this job

Returns
TypeDescription
Map<String,String>

getOperationType()

public String getOperationType()

Returns the table copy job type

Returns
TypeDescription
String

getSourceTables()

public List<TableId> getSourceTables()

Returns the source tables to copy.

Returns
TypeDescription
List<TableId>

getWriteDisposition()

public JobInfo.WriteDisposition getWriteDisposition()

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

Returns
TypeDescription
JobInfo.WriteDisposition

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public CopyJobConfiguration.Builder toBuilder()

Returns a builder for the object.

Returns
TypeDescription
CopyJobConfiguration.Builder
Overrides