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-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
QueryRequest() |
Modifier and Type | Method and Description |
---|---|
QueryRequest |
clone() |
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 rows of data to return per page of results.
|
Boolean |
getPreserveNulls()
[Deprecated] If set to false, maps null values in the query response 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 the request
times out and returns.
|
Boolean |
getUseQueryCache()
[Optional] Whether to look for the result in the query cache.
|
QueryRequest |
set(String fieldName,
Object value) |
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 rows of data to return per page of results.
|
QueryRequest |
setPreserveNulls(Boolean preserveNulls)
[Deprecated] If set to false, maps null values in the query response 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 the request
times out and returns.
|
QueryRequest |
setUseQueryCache(Boolean useQueryCache)
[Optional] Whether to look for the result in the query cache.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public DatasetReference getDefaultDataset()
null
for nonepublic QueryRequest setDefaultDataset(DatasetReference defaultDataset)
defaultDataset
- defaultDataset or null
for nonepublic Boolean getDryRun()
null
for nonepublic QueryRequest setDryRun(Boolean dryRun)
dryRun
- dryRun or null
for nonepublic String getKind()
null
for nonepublic QueryRequest setKind(String kind)
kind
- kind or null
for nonepublic Long getMaxResults()
null
for nonepublic QueryRequest setMaxResults(Long maxResults)
maxResults
- maxResults or null
for nonepublic Boolean getPreserveNulls()
null
for nonepublic QueryRequest setPreserveNulls(Boolean preserveNulls)
preserveNulls
- preserveNulls or null
for nonepublic String getQuery()
null
for nonepublic QueryRequest setQuery(String query)
query
- query or null
for nonepublic Long getTimeoutMs()
null
for nonepublic QueryRequest setTimeoutMs(Long timeoutMs)
timeoutMs
- timeoutMs or null
for nonepublic Boolean getUseQueryCache()
null
for nonepublic QueryRequest setUseQueryCache(Boolean useQueryCache)
useQueryCache
- useQueryCache or null
for nonepublic QueryRequest set(String fieldName, Object value)
set
in class GenericJson
public QueryRequest clone()
clone
in class GenericJson