target.apidocs.com.google.api.services.bigquery.model.JobConfigurationTableCopy.html Maven / Gradle / Ivy
JobConfigurationTableCopy (BigQuery API v2-rev20240616-2.0.0)
com.google.api.services.bigquery.model
Class JobConfigurationTableCopy
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.bigquery.model.JobConfigurationTableCopy
-
public final class JobConfigurationTableCopy
extends com.google.api.client.json.GenericJson
JobConfigurationTableCopy configures a job that copies data from one table to another. For more
information on copying tables, see [Copy a
table](https://cloud.google.com/bigquery/docs/managing-tables#copy-table).
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the BigQuery API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
JobConfigurationTableCopy()
-
Method Summary
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCreateDisposition
public String getCreateDisposition()
Optional. Specifies whether the job is allowed to create new tables. The following values are
supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. *
CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in
the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions
occur as one atomic update upon job completion.
- Returns:
- value or
null
for none
-
setCreateDisposition
public JobConfigurationTableCopy setCreateDisposition(String createDisposition)
Optional. Specifies whether the job is allowed to create new tables. The following values are
supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. *
CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in
the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions
occur as one atomic update upon job completion.
- Parameters:
createDisposition
- createDisposition or null
for none
-
getDestinationEncryptionConfiguration
public EncryptionConfiguration getDestinationEncryptionConfiguration()
Custom encryption configuration (e.g., Cloud KMS keys).
- Returns:
- value or
null
for none
-
setDestinationEncryptionConfiguration
public JobConfigurationTableCopy setDestinationEncryptionConfiguration(EncryptionConfiguration destinationEncryptionConfiguration)
Custom encryption configuration (e.g., Cloud KMS keys).
- Parameters:
destinationEncryptionConfiguration
- destinationEncryptionConfiguration or null
for none
-
getDestinationExpirationTime
public String getDestinationExpirationTime()
Optional. The time when the destination table expires. Expired tables will be deleted and their
storage reclaimed.
- Returns:
- value or
null
for none
-
setDestinationExpirationTime
public JobConfigurationTableCopy setDestinationExpirationTime(String destinationExpirationTime)
Optional. The time when the destination table expires. Expired tables will be deleted and their
storage reclaimed.
- Parameters:
destinationExpirationTime
- destinationExpirationTime or null
for none
-
getDestinationTable
public TableReference getDestinationTable()
[Required] The destination table.
- Returns:
- value or
null
for none
-
setDestinationTable
public JobConfigurationTableCopy setDestinationTable(TableReference destinationTable)
[Required] The destination table.
- Parameters:
destinationTable
- destinationTable or null
for none
-
getOperationType
public String getOperationType()
Optional. Supported operation types in table copy job.
- Returns:
- value or
null
for none
-
setOperationType
public JobConfigurationTableCopy setOperationType(String operationType)
Optional. Supported operation types in table copy job.
- Parameters:
operationType
- operationType or null
for none
-
getSourceTable
public TableReference getSourceTable()
[Pick one] Source table to copy.
- Returns:
- value or
null
for none
-
setSourceTable
public JobConfigurationTableCopy setSourceTable(TableReference sourceTable)
[Pick one] Source table to copy.
- Parameters:
sourceTable
- sourceTable or null
for none
-
getSourceTables
public List<TableReference> getSourceTables()
[Pick one] Source tables to copy.
- Returns:
- value or
null
for none
-
setSourceTables
public JobConfigurationTableCopy setSourceTables(List<TableReference> sourceTables)
[Pick one] Source tables to copy.
- Parameters:
sourceTables
- sourceTables or null
for none
-
getWriteDisposition
public String getWriteDisposition()
Optional. Specifies the action that occurs if the destination table already exists. The
following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery
overwrites the table data and uses the schema and table constraints from the source table. *
WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. *
WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in
the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if
BigQuery is able to complete the job successfully. Creation, truncation and append actions
occur as one atomic update upon job completion.
- Returns:
- value or
null
for none
-
setWriteDisposition
public JobConfigurationTableCopy setWriteDisposition(String writeDisposition)
Optional. Specifies the action that occurs if the destination table already exists. The
following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery
overwrites the table data and uses the schema and table constraints from the source table. *
WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. *
WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in
the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if
BigQuery is able to complete the job successfully. Creation, truncation and append actions
occur as one atomic update upon job completion.
- Parameters:
writeDisposition
- writeDisposition or null
for none
-
set
public JobConfigurationTableCopy set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public JobConfigurationTableCopy clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.