@@ -206,7 +206,7 @@ private DatasetOption(BigQueryRpc.Option option, Object value) {
206
206
/**
207
207
* Returns an option to specify the dataset's fields to be returned by the RPC call. If this
208
208
* option is not provided all dataset's fields are returned. {@code DatasetOption.fields} can
209
- * be used to specify only the fields of interest. {@link DatasetInfo #datasetId()} is always
209
+ * be used to specify only the fields of interest. {@link Dataset #datasetId()} is always
210
210
* returned, even if not specified.
211
211
*/
212
212
public static DatasetOption fields (DatasetField ... fields ) {
@@ -275,8 +275,8 @@ private TableOption(BigQueryRpc.Option option, Object value) {
275
275
/**
276
276
* Returns an option to specify the table's fields to be returned by the RPC call. If this
277
277
* option is not provided all table's fields are returned. {@code TableOption.fields} can be
278
- * used to specify only the fields of interest. {@link TableInfo #tableId()} and type (which is
279
- * part of {@link TableInfo #definition()}) are always returned, even if not specified.
278
+ * used to specify only the fields of interest. {@link Table #tableId()} and type (which is part
279
+ * of {@link Table #definition()}) are always returned, even if not specified.
280
280
*/
281
281
public static TableOption fields (TableField ... fields ) {
282
282
return new TableOption (BigQueryRpc .Option .FIELDS , TableField .selector (fields ));
@@ -369,7 +369,7 @@ public static JobListOption startPageToken(String pageToken) {
369
369
/**
370
370
* Returns an option to specify the job's fields to be returned by the RPC call. If this option
371
371
* is not provided all job's fields are returned. {@code JobOption.fields()} can be used to
372
- * specify only the fields of interest. {@link JobInfo #jobId()}, {@link JobStatus#state()},
372
+ * specify only the fields of interest. {@link Job #jobId()}, {@link JobStatus#state()},
373
373
* {@link JobStatus#error()} as well as type-specific configuration (e.g.
374
374
* {@link QueryJobConfiguration#query()} for Query Jobs) are always returned, even if not
375
375
* specified. {@link JobField#SELF_LINK} and {@link JobField#ETAG} can not be selected when
@@ -397,7 +397,7 @@ private JobOption(BigQueryRpc.Option option, Object value) {
397
397
/**
398
398
* Returns an option to specify the job's fields to be returned by the RPC call. If this option
399
399
* is not provided all job's fields are returned. {@code JobOption.fields()} can be used to
400
- * specify only the fields of interest. {@link JobInfo #jobId()} as well as type-specific
400
+ * specify only the fields of interest. {@link Job #jobId()} as well as type-specific
401
401
* configuration (e.g. {@link QueryJobConfiguration#query()} for Query Jobs) are always
402
402
* returned, even if not specified.
403
403
*/
@@ -457,46 +457,45 @@ public static QueryResultsOption maxWaitTime(long maxWaitTime) {
457
457
*
458
458
* @throws BigQueryException upon failure
459
459
*/
460
- DatasetInfo create (DatasetInfo dataset , DatasetOption ... options ) throws BigQueryException ;
460
+ Dataset create (DatasetInfo dataset , DatasetOption ... options ) throws BigQueryException ;
461
461
462
462
/**
463
463
* Creates a new table.
464
464
*
465
465
* @throws BigQueryException upon failure
466
466
*/
467
- TableInfo create (TableInfo table , TableOption ... options ) throws BigQueryException ;
467
+ Table create (TableInfo table , TableOption ... options ) throws BigQueryException ;
468
468
469
469
/**
470
470
* Creates a new job.
471
471
*
472
472
* @throws BigQueryException upon failure
473
473
*/
474
- JobInfo create (JobInfo job , JobOption ... options ) throws BigQueryException ;
474
+ Job create (JobInfo job , JobOption ... options ) throws BigQueryException ;
475
475
476
476
/**
477
477
* Returns the requested dataset or {@code null} if not found.
478
478
*
479
479
* @throws BigQueryException upon failure
480
480
*/
481
- DatasetInfo getDataset (String datasetId , DatasetOption ... options ) throws BigQueryException ;
481
+ Dataset getDataset (String datasetId , DatasetOption ... options ) throws BigQueryException ;
482
482
483
483
/**
484
484
* Returns the requested dataset or {@code null} if not found.
485
485
*
486
486
* @throws BigQueryException upon failure
487
487
*/
488
- DatasetInfo getDataset (DatasetId datasetId , DatasetOption ... options ) throws BigQueryException ;
488
+ Dataset getDataset (DatasetId datasetId , DatasetOption ... options ) throws BigQueryException ;
489
489
490
490
/**
491
491
* Lists the project's datasets. This method returns partial information on each dataset
492
- * ({@link DatasetInfo#datasetId()}, {@link DatasetInfo#friendlyName()} and
493
- * {@link DatasetInfo#id()}). To get complete information use either
494
- * {@link #getDataset(String, DatasetOption...)} or
492
+ * ({@link Dataset#datasetId()}, {@link Dataset#friendlyName()} and {@link Dataset#id()}). To get
493
+ * complete information use either {@link #getDataset(String, DatasetOption...)} or
495
494
* {@link #getDataset(DatasetId, DatasetOption...)}.
496
495
*
497
496
* @throws BigQueryException upon failure
498
497
*/
499
- Page <DatasetInfo > listDatasets (DatasetListOption ... options ) throws BigQueryException ;
498
+ Page <Dataset > listDatasets (DatasetListOption ... options ) throws BigQueryException ;
500
499
501
500
/**
502
501
* Deletes the requested dataset.
@@ -535,54 +534,50 @@ public static QueryResultsOption maxWaitTime(long maxWaitTime) {
535
534
*
536
535
* @throws BigQueryException upon failure
537
536
*/
538
- DatasetInfo update (DatasetInfo dataset , DatasetOption ... options ) throws BigQueryException ;
537
+ Dataset update (DatasetInfo dataset , DatasetOption ... options ) throws BigQueryException ;
539
538
540
539
/**
541
540
* Updates table information.
542
541
*
543
542
* @throws BigQueryException upon failure
544
543
*/
545
- TableInfo update (TableInfo table , TableOption ... options ) throws BigQueryException ;
544
+ Table update (TableInfo table , TableOption ... options ) throws BigQueryException ;
546
545
547
546
/**
548
547
* Returns the requested table or {@code null} if not found.
549
548
*
550
549
* @throws BigQueryException upon failure
551
550
*/
552
- TableInfo getTable (String datasetId , String tableId , TableOption ... options )
553
- throws BigQueryException ;
551
+ Table getTable (String datasetId , String tableId , TableOption ... options ) throws BigQueryException ;
554
552
555
553
/**
556
554
* Returns the requested table or {@code null} if not found.
557
555
*
558
556
* @throws BigQueryException upon failure
559
557
*/
560
- TableInfo getTable (TableId tableId , TableOption ... options )
561
- throws BigQueryException ;
558
+ Table getTable (TableId tableId , TableOption ... options ) throws BigQueryException ;
562
559
563
560
/**
564
561
* Lists the tables in the dataset. This method returns partial information on each table
565
- * ({@link TableInfo #tableId()}, {@link TableInfo #friendlyName()}, {@link TableInfo #id()} and
566
- * type, which is part of {@link TableInfo #definition()}). To get complete information use either
562
+ * ({@link Table #tableId()}, {@link Table #friendlyName()}, {@link Table #id()} and type, which
563
+ * is part of {@link Table #definition()}). To get complete information use either
567
564
* {@link #getTable(TableId, TableOption...)} or
568
565
* {@link #getTable(String, String, TableOption...)}.
569
566
*
570
567
* @throws BigQueryException upon failure
571
568
*/
572
- Page <TableInfo > listTables (String datasetId , TableListOption ... options )
573
- throws BigQueryException ;
569
+ Page <Table > listTables (String datasetId , TableListOption ... options ) throws BigQueryException ;
574
570
575
571
/**
576
572
* Lists the tables in the dataset. This method returns partial information on each table
577
- * ({@link TableInfo #tableId()}, {@link TableInfo #friendlyName()}, {@link TableInfo #id()} and
578
- * type, which is part of {@link TableInfo #definition()}). To get complete information use either
573
+ * ({@link Table #tableId()}, {@link Table #friendlyName()}, {@link Table #id()} and type, which
574
+ * is part of {@link Table #definition()}). To get complete information use either
579
575
* {@link #getTable(TableId, TableOption...)} or
580
576
* {@link #getTable(String, String, TableOption...)}.
581
577
*
582
578
* @throws BigQueryException upon failure
583
579
*/
584
- Page <TableInfo > listTables (DatasetId datasetId , TableListOption ... options )
585
- throws BigQueryException ;
580
+ Page <Table > listTables (DatasetId datasetId , TableListOption ... options ) throws BigQueryException ;
586
581
587
582
/**
588
583
* Sends an insert all request.
@@ -612,21 +607,21 @@ Page<List<FieldValue>> listTableData(TableId tableId, TableDataListOption... opt
612
607
*
613
608
* @throws BigQueryException upon failure
614
609
*/
615
- JobInfo getJob (String jobId , JobOption ... options ) throws BigQueryException ;
610
+ Job getJob (String jobId , JobOption ... options ) throws BigQueryException ;
616
611
617
612
/**
618
613
* Returns the requested job or {@code null} if not found.
619
614
*
620
615
* @throws BigQueryException upon failure
621
616
*/
622
- JobInfo getJob (JobId jobId , JobOption ... options ) throws BigQueryException ;
617
+ Job getJob (JobId jobId , JobOption ... options ) throws BigQueryException ;
623
618
624
619
/**
625
620
* Lists the jobs.
626
621
*
627
622
* @throws BigQueryException upon failure
628
623
*/
629
- Page <JobInfo > listJobs (JobListOption ... options ) throws BigQueryException ;
624
+ Page <Job > listJobs (JobListOption ... options ) throws BigQueryException ;
630
625
631
626
/**
632
627
* Sends a job cancel request. This call will return immediately. The job status can then be
0 commit comments