public final class QueryJobConfiguration extends JobConfiguration
JobConfiguration.Type.QUERY type.| Modifier and Type | Class and Description |
|---|---|
static class |
QueryJobConfiguration.Builder |
static class |
QueryJobConfiguration.Priority
Priority levels for a query.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
allowLargeResults()
Returns whether the job is enabled to create arbitrarily large results.
|
static QueryJobConfiguration.Builder |
builder(String query)
Creates a builder for a BigQuery Query Job given the query to be run.
|
JobInfo.CreateDisposition |
createDisposition()
Returns whether the job is allowed to create new tables.
|
DatasetId |
defaultDataset()
Returns the default dataset.
|
TableId |
destinationTable()
Returns the table where to put query results.
|
Boolean |
dryRun()
Returns whether the job has to be dry run or not.
|
boolean |
equals(Object obj) |
Boolean |
flattenResults()
Returns whether nested and repeated fields should be flattened.
|
int |
hashCode() |
static QueryJobConfiguration |
of(String query)
Returns a BigQuery Copy Job for the given the query to be run.
|
QueryJobConfiguration.Priority |
priority()
Returns the query priority.
|
String |
query()
Returns the Google BigQuery SQL query.
|
Map<String,ExternalTableDefinition> |
tableDefinitions()
Returns the external tables definitions.
|
QueryJobConfiguration.Builder |
toBuilder()
Returns a builder for the object.
|
Boolean |
useLegacySql()
Returns whether to use BigQuery's legacy SQL dialect for this query.
|
Boolean |
useQueryCache()
Returns whether to look for the result in the query cache.
|
List<UserDefinedFunction> |
userDefinedFunctions()
Returns user defined function resources that can be used by this query.
|
JobInfo.WriteDisposition |
writeDisposition()
Returns the action that should occur if the destination table already exists.
|
toString, typepublic Boolean allowLargeResults()
true
the query is allowed to create large results at a slight cost in performance.
the query is allowed to create large results at a slight cost in performance.public JobInfo.CreateDisposition createDisposition()
public DatasetId defaultDataset()
public TableId destinationTable()
allowLargeResults() is true.public Boolean flattenResults()
false
QueryJobConfiguration.Builder.allowLargeResults(Boolean) must be true.public QueryJobConfiguration.Priority priority()
public String query()
public Map<String,ExternalTableDefinition> tableDefinitions()
public Boolean useQueryCache()
QueryJobConfiguration.Builder.destinationTable(TableId) is not set.public List<UserDefinedFunction> userDefinedFunctions()
UserDefinedFunction.Type.INLINE) or loaded from
a Google Cloud Storage URI (UserDefinedFunction.Type.FROM_URI.public JobInfo.WriteDisposition writeDisposition()
public Boolean dryRun()
public Boolean useLegacySql()
false,
the query will use BigQuery's
Standard SQL. When set to false, the values of allowLargeResults() and
flattenResults() are ignored; query will be run as if allowLargeResults() is
true and flattenResults() is false. If not set, legacy SQL dialect is
used. This property is experimental and might be subject to change.public QueryJobConfiguration.Builder toBuilder()
JobConfigurationtoBuilder in class JobConfigurationpublic static QueryJobConfiguration.Builder builder(String query)
public static QueryJobConfiguration of(String query)
Copyright © 2016 Google. All rights reserved.