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()
[Optional] If true and query uses legacy SQL dialect, 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] If true and query uses legacy SQL dialect, flattens all nested and repeated fields
in the query results.
|
java.lang.Integer |
getMaximumBillingTier()
[Optional] Limits the billing tier for this job.
|
java.lang.Long |
getMaximumBytesBilled()
[Optional] Limits the bytes billed for this job.
|
java.lang.String |
getParameterMode()
Standard SQL only.
|
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] SQL query text to execute.
|
java.util.List<QueryParameter> |
getQueryParameters()
Query parameters for standard SQL queries.
|
java.util.List<java.lang.String> |
getSchemaUpdateOptions()
[Experimental] Allows the schema of the destination table to be updated as a side effect of the
query job.
|
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()
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()
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 |
isAllowLargeResults()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
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)
[Optional] If true and query uses legacy SQL dialect, 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] If true and query uses legacy SQL dialect, 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 |
setMaximumBytesBilled(java.lang.Long maximumBytesBilled)
[Optional] Limits the bytes billed for this job.
|
JobConfigurationQuery |
setParameterMode(java.lang.String parameterMode)
Standard SQL only.
|
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] SQL query text to execute.
|
JobConfigurationQuery |
setQueryParameters(java.util.List<QueryParameter> queryParameters)
Query parameters for standard SQL queries.
|
JobConfigurationQuery |
setSchemaUpdateOptions(java.util.List<java.lang.String> schemaUpdateOptions)
[Experimental] Allows the schema of the destination table to be updated as a side effect of the
query job.
|
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)
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)
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, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.Boolean getAllowLargeResults()
null for nonepublic JobConfigurationQuery setAllowLargeResults(java.lang.Boolean allowLargeResults)
allowLargeResults - allowLargeResults or null for nonepublic boolean isAllowLargeResults()
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] If true and query uses legacy SQL dialect, allows the query to produce arbitrarily large [ result tables at a slight cost in performance. Requires destinationTable to be set. For standard [ SQL queries, this flag is ignored and large results are always allowed.
public 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] If true and query uses legacy SQL dialect, flattens all nested and repeated fields in [ the query results. allowLargeResults must be true if this is set to false. For standard SQL [ queries, this flag is ignored and results are never flattened.
public java.lang.Integer getMaximumBillingTier()
null for nonepublic JobConfigurationQuery setMaximumBillingTier(java.lang.Integer maximumBillingTier)
maximumBillingTier - maximumBillingTier or null for nonepublic java.lang.Long getMaximumBytesBilled()
null for nonepublic JobConfigurationQuery setMaximumBytesBilled(java.lang.Long maximumBytesBilled)
maximumBytesBilled - maximumBytesBilled or null for nonepublic java.lang.String getParameterMode()
null for nonepublic JobConfigurationQuery setParameterMode(java.lang.String parameterMode)
parameterMode - parameterMode 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.List<QueryParameter> getQueryParameters()
null for nonepublic JobConfigurationQuery setQueryParameters(java.util.List<QueryParameter> queryParameters)
queryParameters - queryParameters or null for nonepublic java.util.List<java.lang.String> getSchemaUpdateOptions()
null for nonepublic JobConfigurationQuery setSchemaUpdateOptions(java.util.List<java.lang.String> schemaUpdateOptions)
schemaUpdateOptions - schemaUpdateOptions 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.GenericJsonpublic JobConfigurationQuery clone()
clone in class com.google.api.client.json.GenericJson