internal BigqueryResult(BigqueryClient client, TableDataList firstResult, TableSchema schema, Func<TabledataResource.ListRequest> requestProvider) { _client = client; Schema = schema; var firstRows = firstResult.Rows ?? new TableRow[0]; Rows = firstRows.Concat(GetRemainingRows(requestProvider, firstResult.PageToken)).Select(row => new Row(this, row)); }
internal BigqueryResult(BigqueryClient client, GetQueryResultsResponse firstResult, Func<GetQueryResultsRequest> requestProvider) { _client = client; Schema = firstResult.Schema; var firstRows = firstResult.Rows ?? new TableRow[0]; Rows = firstRows.Concat(GetRemainingRows(requestProvider, firstResult.PageToken)).Select(row => new Row(this, row)); }
internal BigqueryTable(BigqueryClient client, TableList.TablesData resource) : this(client, new Table { TableReference = resource.TableReference, FriendlyName = resource.FriendlyName, Id = resource.Id, Kind = resource.Kind }) { }
internal BigqueryDataset(BigqueryClient client, DatasetList.DatasetsData resource) : this(client, new Dataset { Id = resource.Id, DatasetReference = resource.DatasetReference, Kind = resource.Kind, FriendlyName = resource.FriendlyName }) { }
internal BigqueryResult(BigqueryClient client, QueryResponse syncResponse) { _client = client; Schema = syncResponse.Schema; var reference = syncResponse.JobReference; Func<GetQueryResultsRequest> requestProvider = () => client.Service.Jobs.GetQueryResults(reference.ProjectId, reference.JobId); var firstRows = syncResponse.Rows ?? new TableRow[0]; Rows = firstRows.Concat(GetRemainingRows(requestProvider, syncResponse.PageToken)).Select(row => new Row(this, row)); }
internal BigqueryJob(BigqueryClient client, JobList.JobsData resource) { _client = client; Resource = new Job { JobReference = resource.JobReference, Status = resource.Status, Id = resource.Id, Statistics = resource.Statistics, Configuration = resource.Configuration, UserEmail = resource.UserEmail, Kind = resource.Kind }; }
internal DatasetPageManager(BigqueryClient client) { _client = client; }
internal BigqueryJob(BigqueryClient client, Job resource) { _client = client; Resource = resource; }
internal BigqueryDataset(BigqueryClient client, Dataset resource) { _client = client; Resource = resource; }
internal JobPageManager(BigqueryClient client) { _client = client; }
internal BigqueryQueryJob(BigqueryClient client, QueryResponse response, ExecuteQueryOptions options) : this(client, ConvertQueryResponse(GaxPreconditions.CheckNotNull(response, nameof(response))), options?.ToGetQueryResultsOptions()) { }
internal ProjectsPageManager(BigqueryClient client) { _client = client; }
internal TablePageManager(BigqueryClient client) { _client = client; }
internal TableRowPageManager(BigqueryClient client, TableSchema schema) { _client = client; _schema = schema; }
internal CloudProject(BigqueryClient _client, ProjectsData resource) { this._client = _client; Resource = resource; }
internal BigqueryTable(BigqueryClient client, Table resource) { _client = client; Resource = resource; }
internal BigqueryQueryJob(BigqueryClient client, GetQueryResultsResponse response, GetQueryResultsOptions options) { _client = GaxPreconditions.CheckNotNull(client, nameof(client)); _response = GaxPreconditions.CheckNotNull(response, nameof(response)); _options = options; }