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));
 }
Esempio n. 3
0
 internal BigqueryTable(BigqueryClient client, TableList.TablesData resource)
     : this(client, new Table {
     TableReference = resource.TableReference,
     FriendlyName = resource.FriendlyName,
     Id = resource.Id, Kind = resource.Kind
 })
 {
 }
Esempio n. 4
0
 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
     };
 }
Esempio n. 7
0
 internal DatasetPageManager(BigqueryClient client)
 {
     _client = client;
 }
 internal BigqueryJob(BigqueryClient client, Job resource)
 {
     _client  = client;
     Resource = resource;
 }
Esempio n. 9
0
 internal BigqueryDataset(BigqueryClient client, Dataset resource)
 {
     _client  = client;
     Resource = resource;
 }
Esempio n. 10
0
 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;
 }
Esempio n. 15
0
 internal CloudProject(BigqueryClient _client, ProjectsData resource)
 {
     this._client = _client;
     Resource     = resource;
 }
Esempio n. 16
0
 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;
 }