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)
Deprecated.
|
JobInfo.CreateDisposition |
createDisposition()
Deprecated.
|
DatasetId |
defaultDataset()
Deprecated.
|
TableId |
destinationTable()
Deprecated.
|
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.
|
JobInfo.CreateDisposition |
getCreateDisposition()
Returns whether the job is allowed to create new tables.
|
DatasetId |
getDefaultDataset()
Returns the default dataset.
|
TableId |
getDestinationTable()
Returns the table where to put query results.
|
QueryJobConfiguration.Priority |
getPriority()
Returns the query priority.
|
String |
getQuery()
Returns the Google BigQuery SQL query.
|
Map<String,ExternalTableDefinition> |
getTableDefinitions()
Returns the external tables definitions.
|
List<UserDefinedFunction> |
getUserDefinedFunctions()
Returns user defined function resources that can be used by this query.
|
JobInfo.WriteDisposition |
getWriteDisposition()
Returns the action that should occur if the destination table already exists.
|
int |
hashCode() |
static QueryJobConfiguration.Builder |
newBuilder(String query)
Creates a builder for a BigQuery Query Job given the query to be run.
|
static QueryJobConfiguration |
of(String query)
Returns a BigQuery Copy Job for the given the query to be run.
|
QueryJobConfiguration.Priority |
priority()
Deprecated.
|
String |
query()
Deprecated.
|
Map<String,ExternalTableDefinition> |
tableDefinitions()
Deprecated.
|
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()
Deprecated.
|
JobInfo.WriteDisposition |
writeDisposition()
Deprecated.
|
getType, toString, type
public 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.@Deprecated public JobInfo.CreateDisposition createDisposition()
public JobInfo.CreateDisposition getCreateDisposition()
@Deprecated public DatasetId defaultDataset()
public DatasetId getDefaultDataset()
@Deprecated public TableId destinationTable()
allowLargeResults()
is true
.public TableId getDestinationTable()
allowLargeResults()
is true
.public Boolean flattenResults()
false
QueryJobConfiguration.Builder.allowLargeResults(Boolean)
must be true
.@Deprecated public QueryJobConfiguration.Priority priority()
public QueryJobConfiguration.Priority getPriority()
@Deprecated public String query()
public String getQuery()
@Deprecated public Map<String,ExternalTableDefinition> tableDefinitions()
public Map<String,ExternalTableDefinition> getTableDefinitions()
public Boolean useQueryCache()
QueryJobConfiguration.Builder.destinationTable(TableId)
is not set.@Deprecated public List<UserDefinedFunction> userDefinedFunctions()
UserDefinedFunction.Type.INLINE
) or loaded from
a Google Cloud Storage URI (UserDefinedFunction.Type.FROM_URI
.public List<UserDefinedFunction> getUserDefinedFunctions()
UserDefinedFunction.Type.INLINE
) or loaded from
a Google Cloud Storage URI (UserDefinedFunction.Type.FROM_URI
.@Deprecated public JobInfo.WriteDisposition writeDisposition()
public JobInfo.WriteDisposition getWriteDisposition()
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()
JobConfiguration
toBuilder
in class JobConfiguration
@Deprecated public static QueryJobConfiguration.Builder builder(String query)
public static QueryJobConfiguration.Builder newBuilder(String query)
public static QueryJobConfiguration of(String query)
Copyright © 2016 Google. All rights reserved.