Google\Cloud\BigQuery\Job::queryResults PHP Method

queryResults() public method

Example: $queryResults = $job->queryResults();
See also: https://cloud.google.com/bigquery/docs/reference/v2/jobs/getQueryResults Jobs getQueryResults API documentation.
public queryResults ( array $options = [] ) : QueryResults
$options array [optional] { Configuration options. @type int $maxResults Maximum number of results to read. @type int $startIndex Zero-based index of the starting row. @type int $timeoutMs How long to wait for the query to complete, in milliseconds. **Defaults to** `10000` milliseconds (10 seconds). }
return QueryResults
    public function queryResults(array $options = [])
    {
        $response = $this->connection->getQueryResults($options + $this->identity);
        return new QueryResults($this->connection, $this->identity['jobId'], $this->identity['projectId'], $response, $options, $this->mapper ?: new ValueMapper(false));
    }