public final class JobConfigurationQuery
extends com.google.api.client.json.GenericJson
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
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
JobConfigurationQuery() |
Modifier and Type | Method and Description |
---|---|
JobConfigurationQuery |
clone() |
java.lang.Boolean |
getAllowLargeResults()
If true, allows the query to produce arbitrarily large result tables at a slight cost in
performance.
|
java.lang.String |
getCreateDisposition()
[Optional] Specifies whether the job is allowed to create new tables.
|
DatasetReference |
getDefaultDataset()
[Optional] Specifies the default dataset to use for unqualified table names in the query.
|
TableReference |
getDestinationTable()
[Optional] Describes the table where the query results should be stored.
|
java.lang.Boolean |
getFlattenResults()
[Optional] Flattens all nested and repeated fields in the query results.
|
java.lang.Integer |
getMaximumBillingTier()
[Optional] Limits the billing tier for this job.
|
java.lang.Boolean |
getPreserveNulls()
[Deprecated] This property is deprecated.
|
java.lang.String |
getPriority()
[Optional] Specifies a priority for the query.
|
java.lang.String |
getQuery()
[Required] BigQuery SQL query to execute.
|
java.util.Map<java.lang.String,ExternalDataConfiguration> |
getTableDefinitions()
[Optional] If querying an external data source outside of BigQuery, describes the data format,
location and other properties of the data source.
|
java.lang.Boolean |
getUseLegacySql()
[Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this query.
|
java.lang.Boolean |
getUseQueryCache()
[Optional] Whether to look for the result in the query cache.
|
java.util.List<UserDefinedFunctionResource> |
getUserDefinedFunctionResources()
[Experimental] Describes user-defined function resources used in the query.
|
java.lang.String |
getWriteDisposition()
[Optional] Specifies the action that occurs if the destination table already exists.
|
boolean |
isFlattenResults()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isUseQueryCache()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
JobConfigurationQuery |
set(java.lang.String fieldName,
java.lang.Object value) |
JobConfigurationQuery |
setAllowLargeResults(java.lang.Boolean allowLargeResults)
If true, allows the query to produce arbitrarily large result tables at a slight cost in
performance.
|
JobConfigurationQuery |
setCreateDisposition(java.lang.String createDisposition)
[Optional] Specifies whether the job is allowed to create new tables.
|
JobConfigurationQuery |
setDefaultDataset(DatasetReference defaultDataset)
[Optional] Specifies the default dataset to use for unqualified table names in the query.
|
JobConfigurationQuery |
setDestinationTable(TableReference destinationTable)
[Optional] Describes the table where the query results should be stored.
|
JobConfigurationQuery |
setFlattenResults(java.lang.Boolean flattenResults)
[Optional] Flattens all nested and repeated fields in the query results.
|
JobConfigurationQuery |
setMaximumBillingTier(java.lang.Integer maximumBillingTier)
[Optional] Limits the billing tier for this job.
|
JobConfigurationQuery |
setPreserveNulls(java.lang.Boolean preserveNulls)
[Deprecated] This property is deprecated.
|
JobConfigurationQuery |
setPriority(java.lang.String priority)
[Optional] Specifies a priority for the query.
|
JobConfigurationQuery |
setQuery(java.lang.String query)
[Required] BigQuery SQL query to execute.
|
JobConfigurationQuery |
setTableDefinitions(java.util.Map<java.lang.String,ExternalDataConfiguration> tableDefinitions)
[Optional] If querying an external data source outside of BigQuery, describes the data format,
location and other properties of the data source.
|
JobConfigurationQuery |
setUseLegacySql(java.lang.Boolean useLegacySql)
[Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this query.
|
JobConfigurationQuery |
setUseQueryCache(java.lang.Boolean useQueryCache)
[Optional] Whether to look for the result in the query cache.
|
JobConfigurationQuery |
setUserDefinedFunctionResources(java.util.List<UserDefinedFunctionResource> userDefinedFunctionResources)
[Experimental] Describes user-defined function resources used in the query.
|
JobConfigurationQuery |
setWriteDisposition(java.lang.String writeDisposition)
[Optional] Specifies the action that occurs if the destination table already exists.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.Boolean getAllowLargeResults()
null
for nonepublic JobConfigurationQuery setAllowLargeResults(java.lang.Boolean allowLargeResults)
allowLargeResults
- allowLargeResults or null
for nonepublic java.lang.String getCreateDisposition()
null
for nonepublic JobConfigurationQuery setCreateDisposition(java.lang.String createDisposition)
createDisposition
- createDisposition or null
for nonepublic DatasetReference getDefaultDataset()
null
for nonepublic JobConfigurationQuery setDefaultDataset(DatasetReference defaultDataset)
defaultDataset
- defaultDataset or null
for nonepublic TableReference getDestinationTable()
null
for nonepublic JobConfigurationQuery setDestinationTable(TableReference destinationTable)
destinationTable
- destinationTable or null
for nonepublic java.lang.Boolean getFlattenResults()
null
for nonepublic JobConfigurationQuery setFlattenResults(java.lang.Boolean flattenResults)
flattenResults
- flattenResults or null
for nonepublic boolean isFlattenResults()
Boolean.TRUE
or Boolean.FALSE
.
Boolean properties can have four possible values:
null
, Data.NULL_BOOLEAN
, Boolean.TRUE
or Boolean.FALSE
.
This method returns Boolean.TRUE
if the default of the property is Boolean.TRUE
and it is null
or Data.NULL_BOOLEAN
.
Boolean.FALSE
is returned if the default of the property is Boolean.FALSE
and
it is null
or Data.NULL_BOOLEAN
.
[ Optional] Flattens all nested and repeated fields in the query results. The default value is true. [ allowLargeResults must be true if this is set to false.
public java.lang.Integer getMaximumBillingTier()
null
for nonepublic JobConfigurationQuery setMaximumBillingTier(java.lang.Integer maximumBillingTier)
maximumBillingTier
- maximumBillingTier or null
for nonepublic java.lang.Boolean getPreserveNulls()
null
for nonepublic JobConfigurationQuery setPreserveNulls(java.lang.Boolean preserveNulls)
preserveNulls
- preserveNulls or null
for nonepublic java.lang.String getPriority()
null
for nonepublic JobConfigurationQuery setPriority(java.lang.String priority)
priority
- priority or null
for nonepublic java.lang.String getQuery()
null
for nonepublic JobConfigurationQuery setQuery(java.lang.String query)
query
- query or null
for nonepublic java.util.Map<java.lang.String,ExternalDataConfiguration> getTableDefinitions()
null
for nonepublic JobConfigurationQuery setTableDefinitions(java.util.Map<java.lang.String,ExternalDataConfiguration> tableDefinitions)
tableDefinitions
- tableDefinitions or null
for nonepublic java.lang.Boolean getUseLegacySql()
null
for nonepublic JobConfigurationQuery setUseLegacySql(java.lang.Boolean useLegacySql)
useLegacySql
- useLegacySql or null
for nonepublic java.lang.Boolean getUseQueryCache()
null
for nonepublic JobConfigurationQuery setUseQueryCache(java.lang.Boolean useQueryCache)
useQueryCache
- useQueryCache or null
for nonepublic boolean isUseQueryCache()
Boolean.TRUE
or Boolean.FALSE
.
Boolean properties can have four possible values:
null
, Data.NULL_BOOLEAN
, Boolean.TRUE
or Boolean.FALSE
.
This method returns Boolean.TRUE
if the default of the property is Boolean.TRUE
and it is null
or Data.NULL_BOOLEAN
.
Boolean.FALSE
is returned if the default of the property is Boolean.FALSE
and
it is null
or Data.NULL_BOOLEAN
.
[ Optional] Whether to look for the result in the query cache. The query cache is a best-effort [ cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is [ only available when a query does not have a destination table specified. The default value is [ true.
public java.util.List<UserDefinedFunctionResource> getUserDefinedFunctionResources()
null
for nonepublic JobConfigurationQuery setUserDefinedFunctionResources(java.util.List<UserDefinedFunctionResource> userDefinedFunctionResources)
userDefinedFunctionResources
- userDefinedFunctionResources or null
for nonepublic java.lang.String getWriteDisposition()
null
for nonepublic JobConfigurationQuery setWriteDisposition(java.lang.String writeDisposition)
writeDisposition
- writeDisposition or null
for nonepublic JobConfigurationQuery set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public JobConfigurationQuery clone()
clone
in class com.google.api.client.json.GenericJson