public final class QueryResponse
extends com.google.api.client.json.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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
QueryResponse() |
| Modifier and Type | Method and Description |
|---|---|
QueryResponse |
clone() |
Boolean |
getCacheHit()
Whether the query result was fetched from the query cache.
|
Long |
getCreationTime()
Output only.
|
DmlStatistics |
getDmlStats()
Output only.
|
Long |
getEndTime()
Output only.
|
List<ErrorProto> |
getErrors()
Output only.
|
Boolean |
getJobComplete()
Whether the query has completed or not.
|
JobCreationReason |
getJobCreationReason()
Optional.
|
JobReference |
getJobReference()
Reference to the Job that was created to run the query.
|
String |
getKind()
The resource type.
|
String |
getLocation()
Output only.
|
Long |
getNumDmlAffectedRows()
Output only.
|
String |
getPageToken()
A token used for paging results.
|
String |
getQueryId()
Auto-generated ID for the query.
|
List<TableRow> |
getRows()
An object with as many results as can be contained within the maximum permitted reply size.
|
TableSchema |
getSchema()
The schema of the results.
|
SessionInfo |
getSessionInfo()
Output only.
|
Long |
getStartTime()
Output only.
|
Long |
getTotalBytesBilled()
Output only.
|
Long |
getTotalBytesProcessed()
The total number of bytes processed for this query.
|
BigInteger |
getTotalRows()
The total number of rows in the complete query result set, which can be more than the number of
rows in this single page of results.
|
Long |
getTotalSlotMs()
Output only.
|
QueryResponse |
set(String fieldName,
Object value) |
QueryResponse |
setCacheHit(Boolean cacheHit)
Whether the query result was fetched from the query cache.
|
QueryResponse |
setCreationTime(Long creationTime)
Output only.
|
QueryResponse |
setDmlStats(DmlStatistics dmlStats)
Output only.
|
QueryResponse |
setEndTime(Long endTime)
Output only.
|
QueryResponse |
setErrors(List<ErrorProto> errors)
Output only.
|
QueryResponse |
setJobComplete(Boolean jobComplete)
Whether the query has completed or not.
|
QueryResponse |
setJobCreationReason(JobCreationReason jobCreationReason)
Optional.
|
QueryResponse |
setJobReference(JobReference jobReference)
Reference to the Job that was created to run the query.
|
QueryResponse |
setKind(String kind)
The resource type.
|
QueryResponse |
setLocation(String location)
Output only.
|
QueryResponse |
setNumDmlAffectedRows(Long numDmlAffectedRows)
Output only.
|
QueryResponse |
setPageToken(String pageToken)
A token used for paging results.
|
QueryResponse |
setQueryId(String queryId)
Auto-generated ID for the query.
|
QueryResponse |
setRows(List<TableRow> rows)
An object with as many results as can be contained within the maximum permitted reply size.
|
QueryResponse |
setSchema(TableSchema schema)
The schema of the results.
|
QueryResponse |
setSessionInfo(SessionInfo sessionInfo)
Output only.
|
QueryResponse |
setStartTime(Long startTime)
Output only.
|
QueryResponse |
setTotalBytesBilled(Long totalBytesBilled)
Output only.
|
QueryResponse |
setTotalBytesProcessed(Long totalBytesProcessed)
The total number of bytes processed for this query.
|
QueryResponse |
setTotalRows(BigInteger totalRows)
The total number of rows in the complete query result set, which can be more than the number of
rows in this single page of results.
|
QueryResponse |
setTotalSlotMs(Long totalSlotMs)
Output only.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getCacheHit()
null for nonepublic QueryResponse setCacheHit(Boolean cacheHit)
cacheHit - cacheHit or null for nonepublic Long getCreationTime()
null for nonepublic QueryResponse setCreationTime(Long creationTime)
creationTime - creationTime or null for nonepublic DmlStatistics getDmlStats()
null for nonepublic QueryResponse setDmlStats(DmlStatistics dmlStats)
dmlStats - dmlStats or null for nonepublic Long getEndTime()
null for nonepublic QueryResponse setEndTime(Long endTime)
endTime - endTime or null for nonepublic List<ErrorProto> getErrors()
null for nonepublic QueryResponse setErrors(List<ErrorProto> errors)
errors - errors or null for nonepublic Boolean getJobComplete()
null for nonepublic QueryResponse setJobComplete(Boolean jobComplete)
jobComplete - jobComplete or null for nonepublic JobCreationReason getJobCreationReason()
null for nonepublic QueryResponse setJobCreationReason(JobCreationReason jobCreationReason)
jobCreationReason - jobCreationReason or null for nonepublic JobReference getJobReference()
null for nonepublic QueryResponse setJobReference(JobReference jobReference)
jobReference - jobReference or null for nonepublic String getKind()
null for nonepublic QueryResponse setKind(String kind)
kind - kind or null for nonepublic String getLocation()
null for nonepublic QueryResponse setLocation(String location)
location - location or null for nonepublic Long getNumDmlAffectedRows()
null for nonepublic QueryResponse setNumDmlAffectedRows(Long numDmlAffectedRows)
numDmlAffectedRows - numDmlAffectedRows or null for nonepublic String getPageToken()
null for nonepublic QueryResponse setPageToken(String pageToken)
pageToken - pageToken or null for nonepublic String getQueryId()
null for nonepublic QueryResponse setQueryId(String queryId)
queryId - queryId or null for nonepublic List<TableRow> getRows()
null for nonepublic QueryResponse setRows(List<TableRow> rows)
rows - rows or null for nonepublic TableSchema getSchema()
null for nonepublic QueryResponse setSchema(TableSchema schema)
schema - schema or null for nonepublic SessionInfo getSessionInfo()
null for nonepublic QueryResponse setSessionInfo(SessionInfo sessionInfo)
sessionInfo - sessionInfo or null for nonepublic Long getStartTime()
null for nonepublic QueryResponse setStartTime(Long startTime)
startTime - startTime or null for nonepublic Long getTotalBytesBilled()
null for nonepublic QueryResponse setTotalBytesBilled(Long totalBytesBilled)
totalBytesBilled - totalBytesBilled or null for nonepublic Long getTotalBytesProcessed()
null for nonepublic QueryResponse setTotalBytesProcessed(Long totalBytesProcessed)
totalBytesProcessed - totalBytesProcessed or null for nonepublic BigInteger getTotalRows()
null for nonepublic QueryResponse setTotalRows(BigInteger totalRows)
totalRows - totalRows or null for nonepublic Long getTotalSlotMs()
null for nonepublic QueryResponse setTotalSlotMs(Long totalSlotMs)
totalSlotMs - totalSlotMs or null for nonepublic QueryResponse set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic QueryResponse clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.