Update: There appeared new documentation on how to page through the list results .
I myself answer this question because the developer asked me privately, and I want to share the answer with Stack Overflow with him.
The pageToken parameter is available for querying paginated results from the Tabledata.list method. Result sets are automatically paginated if, for example, the result data exceeds 100,000 rows or 10 MB of results. You can also request pagination by setting the maxResults parameter explicitly. Each results page will return the pageToken parameter, which can then be used to get the next page of results.
Each query results in a new BigQuery table. If you did not specify the table explicitly, it lasts 24 hours. However, even unnamed "anonymous" tables have an identifier. In any case, after inserting the query job, get the name of the newly created table. Then use the tabledata.list method (and the combination of maxResults / pageToken parameters) to request paginated results. Loop and continue to call tabledata.list using the previously received Token page until the Tokens page is no longer returned (this means that you have reached the last page.
Using the Google API client library for Java, code to insert a query job, polling to complete the query, and then searching the page after the query results page may look something like this:
// Create a new BigQuery client authorized via OAuth 2.0 protocol // See: https://developers.google.com/bigquery/docs/authorization
source share