public class Bigquery.Jobs.Query extends BigqueryRequest<QueryResponse>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
USER_AGENT_SUFFIX
Modifier | Constructor and Description |
---|---|
protected |
Query(String projectId,
QueryRequest content)
Runs a BigQuery SQL query synchronously and returns query results if the query completes within
a specified timeout.
|
Modifier and Type | Method and Description |
---|---|
String |
getProjectId()
Project ID of the project billed for the query
|
Bigquery.Jobs.Query |
set(String parameterName,
Object value) |
Bigquery.Jobs.Query |
setAlt(String alt)
Data format for the response.
|
Bigquery.Jobs.Query |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Bigquery.Jobs.Query |
setKey(String key)
API key.
|
Bigquery.Jobs.Query |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Bigquery.Jobs.Query |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Bigquery.Jobs.Query |
setProjectId(String projectId)
Project ID of the project billed for the query
|
Bigquery.Jobs.Query |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Bigquery.Jobs.Query |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected Query(String projectId, QueryRequest content)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
Bigquery.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must
be called to initialize this instance immediately after invoking the constructor.
projectId
- Project ID of the project billed for the querycontent
- the QueryRequest
public Bigquery.Jobs.Query setAlt(String alt)
BigqueryRequest
setAlt
in class BigqueryRequest<QueryResponse>
public Bigquery.Jobs.Query setFields(String fields)
BigqueryRequest
setFields
in class BigqueryRequest<QueryResponse>
public Bigquery.Jobs.Query setKey(String key)
BigqueryRequest
setKey
in class BigqueryRequest<QueryResponse>
public Bigquery.Jobs.Query setOauthToken(String oauthToken)
BigqueryRequest
setOauthToken
in class BigqueryRequest<QueryResponse>
public Bigquery.Jobs.Query setPrettyPrint(Boolean prettyPrint)
BigqueryRequest
setPrettyPrint
in class BigqueryRequest<QueryResponse>
public Bigquery.Jobs.Query setQuotaUser(String quotaUser)
BigqueryRequest
setQuotaUser
in class BigqueryRequest<QueryResponse>
public Bigquery.Jobs.Query setUserIp(String userIp)
BigqueryRequest
setUserIp
in class BigqueryRequest<QueryResponse>
public String getProjectId()
public Bigquery.Jobs.Query setProjectId(String projectId)
public Bigquery.Jobs.Query set(String parameterName, Object value)
set
in class BigqueryRequest<QueryResponse>
Copyright © 2011–2020 Google. All rights reserved.