google/cloud/bigquery/client.py
def _get_query_results(self, job_id, retry, project=None, timeout_ms=None):
        """Get the query results object for a query job.

        :type job_id: str
        :param job_id: Name of the query job.

        :type retry: :class:`google.api_core.retry.Retry`
        :param retry: (Optional) How to retry the RPC.

        :type project: str
        :param project:
            (Optional) project ID for the query job (defaults to the project of
            the client).

        :type timeout_ms: int
        :param timeout_ms:
            (Optional) number of milliseconds the the API call should wait for
            the query to complete before the request times out.

        :rtype: :class:`google.cloud.bigquery.query.QueryResults`
        :returns: a new ``QueryResults`` instance
        """

        extra_params = {'maxResults': 0}

        if project is None:
            project = self.project

        if timeout_ms is not None:
            extra_params['timeoutMs'] = timeout_ms

        path = '/projects/{}/queries/{}'.format(project, job_id)

        # This call is typically made in a polling loop that checks whether the
        # job is complete (from QueryJob.done(), called ultimately from
        # QueryJob.result()). So we don't need to poll here.
        resource = self._call_api(
            retry, method='GET', path=path, query_params=extra_params)
        return QueryResults.from_api_repr(resource)
Get the query results object for a query job.

        :type job_id: str
        :param job_id: Name of the query job.

        :type retry: :class:`google.api_core.retry.Retry`
        :param retry: (Optional) How to retry the RPC.

        :type project: str
        :param project:
            (Optional) project ID for the query job (defaults to the project of
            the client).

        :type timeout_ms: int
        :param timeout_ms:
            (Optional) number of milliseconds the the API call should wait for
            the query to complete before the request times out.

        :rtype: :class:`google.cloud.bigquery.query.QueryResults`
        :returns: a new ``QueryResults`` instance
        
Get the query results object for a query job.
Get the query results object for a query job .
def _get_query_results(self, job_id, retry, project=None, timeout_ms=None):
        extra_params = {'maxResults': 0}
        if project is None:
            project = self.project
        if timeout_ms is not None:
            extra_params['timeoutMs'] = timeout_ms
        path = '/projects/{}/queries/{}'.format(project, job_id)
        resource = self._call_api(
            retry, method='GET', path=path, query_params=extra_params)
        return QueryResults.from_api_repr(resource)
def _get_query_results ( self , job_id , retry , project = None , timeout_ms = None ) : extra_params = { 'maxResults' : 0 } if project is None : project = self . project if timeout_ms is not None : extra_params [ 'timeoutMs' ] = timeout_ms path = '/projects/{}/queries/{}' . format ( project , job_id ) resource = self . _call_api ( retry , method = 'GET' , path = path , query_params = extra_params ) return QueryResults . from_api_repr ( resource )
Get the query results object for a query job.
Get the query results object for a query job .
"""Get the query results object for a query job.

        :type job_id: str
        :param job_id: Name of the query job.

        :type retry: :class:`google.api_core.retry.Retry`
        :param retry: (Optional) How to retry the RPC.

        :type project: str
        :param project:
            (Optional) project ID for the query job (defaults to the project of
            the client).

        :type timeout_ms: int
        :param timeout_ms:
            (Optional) number of milliseconds the the API call should wait for
            the query to complete before the request times out.

        :rtype: :class:`google.cloud.bigquery.query.QueryResults`
        :returns: a new ``QueryResults`` instance
        """ # This call is typically made in a polling loop that checks whether the # job is complete (from QueryJob.done(), called ultimately from # QueryJob.result()). So we don't need to poll here.
a new ``QueryResults`` instance
a new ` ` QueryResults ` ` instance
:class:`google.cloud.bigquery.query.QueryResults`
self
job_id
Name of the query job.
Name of the query job .
retry
(Optional) How to retry the RPC.
( Optional ) How to retry the RPC .
project
(Optional) project ID for the query job (defaults to the project of
the client).
( Optional ) project ID for the query job ( defaults to the project of the client ) .
the project of
the client)
timeout_ms
(Optional) number of milliseconds the the API call should wait for
the query to complete before the request times out.
( Optional ) number of milliseconds the the API call should wait for the query to complete before the request times out .