BigQuery API v2 (revision 76)



com.google.api.services.bigquery.model
Class GetQueryResultsResponse

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.bigquery.model.GetQueryResultsResponse
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class GetQueryResultsResponse
extends GenericJson

Model definition for GetQueryResultsResponse.

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

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
GetQueryResultsResponse()
           
 
Method Summary
 GetQueryResultsResponse clone()
           
 String getEtag()
          A hash of this response.
 Boolean getJobComplete()
          Whether the query has completed or not.
 JobReference getJobReference()
          Reference to the BigQuery Job that was created to run the query.
 String getKind()
          The resource type of the response.
 String getPageToken()
          A token used for paging results.
 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.
 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.
 GetQueryResultsResponse set(String fieldName, Object value)
           
 GetQueryResultsResponse setEtag(String etag)
          A hash of this response.
 GetQueryResultsResponse setJobComplete(Boolean jobComplete)
          Whether the query has completed or not.
 GetQueryResultsResponse setJobReference(JobReference jobReference)
          Reference to the BigQuery Job that was created to run the query.
 GetQueryResultsResponse setKind(String kind)
          The resource type of the response.
 GetQueryResultsResponse setPageToken(String pageToken)
          A token used for paging results.
 GetQueryResultsResponse setRows(List<TableRow> rows)
          An object with as many results as can be contained within the maximum permitted reply size.
 GetQueryResultsResponse setSchema(TableSchema schema)
          The schema of the results.
 GetQueryResultsResponse 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.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetQueryResultsResponse

public GetQueryResultsResponse()
Method Detail

getEtag

public String getEtag()
A hash of this response.

Returns:
value or null for none

setEtag

public GetQueryResultsResponse setEtag(String etag)
A hash of this response.

Parameters:
etag - etag or null for none

getJobComplete

public Boolean getJobComplete()
Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available.

Returns:
value or null for none

setJobComplete

public GetQueryResultsResponse setJobComplete(Boolean jobComplete)
Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available.

Parameters:
jobComplete - jobComplete or null for none

getJobReference

public JobReference getJobReference()
Reference to the BigQuery Job that was created to run the query. This field will be present even if the original request timed out, in which case GetQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (GetQueryResults).

Returns:
value or null for none

setJobReference

public GetQueryResultsResponse setJobReference(JobReference jobReference)
Reference to the BigQuery Job that was created to run the query. This field will be present even if the original request timed out, in which case GetQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (GetQueryResults).

Parameters:
jobReference - jobReference or null for none

getKind

public String getKind()
The resource type of the response.

Returns:
value or null for none

setKind

public GetQueryResultsResponse setKind(String kind)
The resource type of the response.

Parameters:
kind - kind or null for none

getPageToken

public String getPageToken()
A token used for paging results.

Returns:
value or null for none

setPageToken

public GetQueryResultsResponse setPageToken(String pageToken)
A token used for paging results.

Parameters:
pageToken - pageToken or null for none

getRows

public List<TableRow> getRows()
An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above. Present only when the query completes successfully.

Returns:
value or null for none

setRows

public GetQueryResultsResponse setRows(List<TableRow> rows)
An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above. Present only when the query completes successfully.

Parameters:
rows - rows or null for none

getSchema

public TableSchema getSchema()
The schema of the results. Present only when the query completes successfully.

Returns:
value or null for none

setSchema

public GetQueryResultsResponse setSchema(TableSchema schema)
The schema of the results. Present only when the query completes successfully.

Parameters:
schema - schema or null for none

getTotalRows

public 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. Present only when the query completes successfully.

Returns:
value or null for none

setTotalRows

public GetQueryResultsResponse 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. Present only when the query completes successfully.

Parameters:
totalRows - totalRows or null for none

set

public GetQueryResultsResponse set(String fieldName,
                                   Object value)
Overrides:
set in class GenericJson

clone

public GetQueryResultsResponse clone()
Overrides:
clone in class GenericJson