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.COPYtype.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCopyJobConfiguration.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 booleanequals(Object obj)JobInfo.CreateDispositiongetCreateDisposition()Returns whether the job is allowed to create new tables.EncryptionConfigurationgetDestinationEncryptionConfiguration()StringgetDestinationExpirationTime()Returns the time when the destination table expiresTableIdgetDestinationTable()Returns the destination table to load the data into.LonggetJobTimeoutMs()Returns the timeout associated with this jobMap<String,String>getLabels()Returns the labels associated with this jobStringgetOperationType()Returns the table copy job typeList<TableId>getSourceTables()Returns the source tables to copy.JobInfo.WriteDispositiongetWriteDisposition()Returns the action that should occur if the destination table already exists.inthashCode()static CopyJobConfiguration.BuildernewBuilder(TableId destinationTable, TableId sourceTable)Creates a builder for a BigQuery Copy Job configuration given destination and source table.static CopyJobConfiguration.BuildernewBuilder(TableId destinationTable, List<TableId> sourceTables)Creates a builder for a BigQuery Copy Job configuration given destination and source tables.static CopyJobConfigurationof(TableId destinationTable, TableId sourceTable)Returns a BigQuery Copy Job configuration for the given destination and source table.static CopyJobConfigurationof(TableId destinationTable, List<TableId> sourceTables)Returns a BigQuery Copy Job configuration for the given destination and source tables.CopyJobConfiguration.BuildertoBuilder()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:JobConfigurationReturns a builder for the object.- Specified by:
toBuilderin 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.
-
-