public final class QueryRequest extends 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: http://code.google.com/p/google-api-java-client/wiki/Json
Upgrade warning: starting with version 1.12 getResponseHeaders()
is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
QueryRequest() |
Modifier and Type | Method and Description |
---|---|
DatasetReference |
getDefaultDataset()
[Optional] Specifies the default datasetId and projectId to assume for any unqualified table
names in the query.
|
Boolean |
getDryRun()
[Optional] If set, don't actually run the query.
|
String |
getKind()
The resource type of the request.
|
Long |
getMaxResults()
[Optional] The maximum number of results to return per page of results.
|
Double |
getMinCompletionRatio()
[Experimental] Specifies the the minimum fraction of data that must be scanned before a query
returns.
|
Boolean |
getPreserveNulls()
[Experimental] If set, preserve null values in table data, rather than mapping null values to
the column's default value.
|
String |
getQuery()
[Required] A query string, following the BigQuery query syntax of the query to execute.
|
Long |
getTimeoutMs()
[Optional] How long to wait for the query to complete, in milliseconds, before returning.
|
Boolean |
getUseQueryCache()
[Optional] Whether to look for the result in the query cache.
|
QueryRequest |
setDefaultDataset(DatasetReference defaultDataset)
[Optional] Specifies the default datasetId and projectId to assume for any unqualified table
names in the query.
|
QueryRequest |
setDryRun(Boolean dryRun)
[Optional] If set, don't actually run the query.
|
QueryRequest |
setKind(String kind)
The resource type of the request.
|
QueryRequest |
setMaxResults(Long maxResults)
[Optional] The maximum number of results to return per page of results.
|
QueryRequest |
setMinCompletionRatio(Double minCompletionRatio)
[Experimental] Specifies the the minimum fraction of data that must be scanned before a query
returns.
|
QueryRequest |
setPreserveNulls(Boolean preserveNulls)
[Experimental] If set, preserve null values in table data, rather than mapping null values to
the column's default value.
|
QueryRequest |
setQuery(String query)
[Required] A query string, following the BigQuery query syntax of the query to execute.
|
QueryRequest |
setTimeoutMs(Long timeoutMs)
[Optional] How long to wait for the query to complete, in milliseconds, before returning.
|
QueryRequest |
setUseQueryCache(Boolean useQueryCache)
[Optional] Whether to look for the result in the query cache.
|
clone, getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public DatasetReference getDefaultDataset()
null
.public QueryRequest setDefaultDataset(DatasetReference defaultDataset)
null
.public Boolean getDryRun()
null
.public QueryRequest setDryRun(Boolean dryRun)
null
.public String getKind()
null
.public QueryRequest setKind(String kind)
null
.public Long getMaxResults()
null
.public QueryRequest setMaxResults(Long maxResults)
null
.public Double getMinCompletionRatio()
null
.public QueryRequest setMinCompletionRatio(Double minCompletionRatio)
null
.public Boolean getPreserveNulls()
null
.public QueryRequest setPreserveNulls(Boolean preserveNulls)
null
.public String getQuery()
null
.public QueryRequest setQuery(String query)
null
.public Long getTimeoutMs()
null
.public QueryRequest setTimeoutMs(Long timeoutMs)
null
.public Boolean getUseQueryCache()
null
.public QueryRequest setUseQueryCache(Boolean useQueryCache)
null
.