Package com.google.cloud.bigquery
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 haveJobConfiguration.Type.COPY
type.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CopyJobConfiguration.Builder
-
Nested classes/interfaces inherited from class com.google.cloud.bigquery.JobConfiguration
JobConfiguration.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
JobInfo.CreateDisposition
getCreateDisposition()
Returns whether the job is allowed to create new tables.EncryptionConfiguration
getDestinationEncryptionConfiguration()
String
getDestinationExpirationTime()
Returns the time when the destination table expiresTableId
getDestinationTable()
Returns the destination table to load the data into.Long
getJobTimeoutMs()
Returns the timeout associated with this jobMap<String,String>
getLabels()
Returns the labels associated with this jobString
getOperationType()
Returns the table copy job typeList<TableId>
getSourceTables()
Returns the source tables to copy.JobInfo.WriteDisposition
getWriteDisposition()
Returns the action that should occur if the destination table already exists.int
hashCode()
static CopyJobConfiguration.Builder
newBuilder(TableId destinationTable, TableId sourceTable)
Creates a builder for a BigQuery Copy Job configuration given destination and source table.static CopyJobConfiguration.Builder
newBuilder(TableId destinationTable, List<TableId> sourceTables)
Creates a builder for a BigQuery Copy Job configuration given destination and source tables.static CopyJobConfiguration
of(TableId destinationTable, TableId sourceTable)
Returns a BigQuery Copy Job configuration for the given destination and source table.static CopyJobConfiguration
of(TableId destinationTable, List<TableId> sourceTables)
Returns a BigQuery Copy Job configuration for the given destination and source tables.CopyJobConfiguration.Builder
toBuilder()
Returns a builder for the object.-
Methods inherited from class com.google.cloud.bigquery.JobConfiguration
getType, toString
-
-
-
-
Method Detail
-
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:
- Create Disposition
-
getWriteDisposition
public JobInfo.WriteDisposition getWriteDisposition()
Returns the action that should occur if the destination table already exists.- See Also:
- Write Disposition
-
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 classJobConfiguration
-
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.
-
-