BigQuery-Java: difference between QueryResponse and GetQueryResultsResponse -


In Google provided 2 sections are used to get the results Query Resignations and GetQueryResultsResponse I I can not understand the purpose of 2 classes and we have to use these 2 sections? We are getting data from both: queryResponse.getRows () and queryResults.getRows ()

I have gone but could not understand. What is the difference between these 2 classes and which is better? These two results are almost identical (in fact, they are similar in raw HTTP requests).

The query rayspaces are backed by jobs.query (). This method can be used to run a query, but there are only limited configuration options in this feature as a function. For more query options (such as setting a destination table, allowing big results, etc.), use jobs.insert (). Another limitation of Jobs.query () is that it can be time before the query is completed. Partially, this is because many clients (like AppEngine) need to end all HTTP requests within 30 seconds or more. If jobs.query () time out, it will still be reported to a job id which results can be used to bring with jobs.get_query_results ().

GetQueryResultsResponse is returned by jobs.get_query_results (). It can be used to get the results of a query starting from any job. () Or jobs.insert () query results (if you do not specify the destination table) are available for 24 hours of completion of the query. Jobs.get_query_results () allows you to get these results at any time. Jobs.query () only gives you once the query results.

There is another difference between the two, which gives jobs.query () only the first page of results Jobs.get_query_results () can be used to get many pages of results.

Hopefully this clarifies some things.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -